Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goenv local Have no effect #433

Open
Xuzan9396 opened this issue Jan 13, 2025 · 0 comments
Open

goenv local Have no effect #433

Xuzan9396 opened this issue Jan 13, 2025 · 0 comments

Comments

@Xuzan9396
Copy link

The local project is set to 1.23.4, but it is found that it does not work, so it is still the global variable 1.22.6

xz:chromedpx (main*) $ goenv global

1.22.6
xz:chromedpx (main*) $ goenv local 1.23.4

xz:chromedpx (main*) $ goenv global      

1.22.6
xz:chromedpx (main*) $ goenv versions    
  system
  1.22.6
* 1.23.4 (set by /Users/admin/go/src/goBoss/my_colly/aws_services/chromedpx/.go-version)
xz:chromedpx (main*) $ ls    
go.mod  main.go
xz:chromedpx (main*) $ ls -al
total 24
drwxr-xr-x   5 admin  staff   160 Jan 13 20:16 .
drwxr-xr-x@ 35 admin  staff  1120 Jan 13 20:14 ..
-rw-r--r--   1 admin  staff     7 Jan 13 20:23 .go-version
-rw-r--r--   1 admin  staff    28 Jan 13 20:16 go.mod
-rw-r--r--   1 admin  staff  1669 Jan 13 20:15 main.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant