Comments (6)
@jamilbk after changing the golang version did you open a new terminal?
from asdf-golang.
After selecting 1.10 with asdf global golang 1.10
, I tried running the Go source I'm interested in with go get github.com/icexin/gocraft
and received the following errors...
# errors
compile: version "go1.11" does not match go tool version "go1.10"
# unicode/utf8
compile: version "go1.11" does not match go tool version "go1.10"
# unicode
compile: version "go1.11" does not match go tool version "go1.10"
# internal/race
compile: version "go1.11" does not match go tool version "go1.10"
# runtime/internal/sys
compile: version "go1.11" does not match go tool version "go1.10"
# image/color
compile: version "go1.11" does not match go tool version "go1.10"
# github.com/icexin/gocraft/vendor/golang.org/x/image/math/f32
compile: version "go1.11" does not match go tool version "go1.10"
# math/bits
compile: version "go1.11" does not match go tool version "go1.10"
# internal/nettrace
compile: version "go1.11" does not match go tool version "go1.10"
# container/list
compile: version "go1.11" does not match go tool version "go1.10"
# unicode/utf16
compile: version "go1.11" does not match go tool version "go1.10"
# crypto/subtle
compile: version "go1.11" does not match go tool version "go1.10"
# crypto/internal/subtle
compile: version "go1.11" does not match go tool version "go1.10"
# encoding
compile: version "go1.11" does not match go tool version "go1.10"
# github.com/icexin/gocraft-server/proto
compile: version "go1.11" does not match go tool version "go1.10"
# vendor/golang_org/x/crypto/cryptobyte/asn1
compile: version "go1.11" does not match go tool version "go1.10"
# internal/cpu
compile: version "go1.11" does not match go tool version "go1.10"
# vendor/golang_org/x/crypto/curve25519
compile: version "go1.11" does not match go tool version "go1.10"
# sync/atomic
compile: version "go1.11" does not match go tool version "go1.10"
# runtime/internal/atomic
compile: version "go1.11" does not match go tool version "go1.10"
# runtime/cgo
compile: version "go1.11" does not match go tool version "go1.10"
which to me indicates a horrible mismatch of Golang tool versions. Thankfully I seem to be able to switch back to 1.11
with asdf global golang 1.11
back this is far from painless! What am I missing?
from asdf-golang.
Have you tried to recreate shims for version of a package?
asdf reshim golang 1.10
Also you shouldn't be changing the global version every time, if this version is for a specific project you can create a local version: asdf local golang 1.10
from asdf-golang.
I'm having the same issue trying to use Go 1.6.2
installed with this plugin. I think the problem is a path issue. It seems that the shim directory and the directory that Go actually gets installed in are two slightly different places:
jaboukhe:relay-cli/ (master✗) $ asdf list golang [11:04:57]
1.6.2
jaboukhe:relay-cli/ (master✗) $ asdf reshim golang 1.6.2 [11:06:19]
jaboukhe:relay-cli/ (master✗) $ asdf which golang [11:06:26]
/Users/jaboukhe/.asdf/installs/golang/1.6.2/bin/golang
jaboukhe:relay-cli/ (master✗) $ ls /Users/jaboukhe/.asdf/installs/golang/1.6.2/bin/golang [11:06:45]
ls: /Users/jaboukhe/.asdf/installs/golang/1.6.2/bin/golang: No such file or directory
jaboukhe:relay-cli/ (master✗) $ ls /Users/jaboukhe/.asdf/installs/golang/1.6.2 [11:06:59]
go
jaboukhe:relay-cli/ (master✗) $ ls /Users/jaboukhe/.asdf/installs/golang/1.6.2/go [11:07:10]
AUTHORS CONTRIBUTORS PATENTS VERSION bin doc lib pkg src
CONTRIBUTING.md LICENSE README.md api blog favicon.ico misc robots.txt test
from asdf-golang.
I think we're all good here, but let me know if I'm missing something @carlca.
from asdf-golang.
Also check your shell rc files for old GOROOT
and GOPATH
entries.
from asdf-golang.
Related Issues (20)
- Use built in zsh function to get absolute path HOT 1
- go installed binaries not working for go v1.20 HOT 1
- Switching versions doesn't update `GOPATH` HOT 2
- Support for the GOBIN environment variable for each Go version. HOT 5
- Dependency Dashboard
- Would it be possible to set ASDF_GOLANG_MOD_VERSION_ENABLED in ~/.asdfrc? HOT 3
- Download site changed from dl.google.com to go.dev HOT 1
- Google changed golang download URL for golang 1.21 HOT 2
- Not able to disable `ASDF_GOLANG_MOD_VERSION_ENABLED` HOT 3
- Support toochain version
- installing golang new versions fails with the output : curl: (23) Failed writing header
- Infinite recursive call in `asdf list golang` HOT 13
- How to install old go versions on apple m1? HOT 1
- `go get -u $PACKAGES` deprecated HOT 2
- Does not respect the `${HOME}/.tool-versions` or `${HOME}/.go-version` HOT 2
- Download checksum verification fails on FreeBSD 13.1 HOT 2
- Versions prior to 1.5.4 don't have checksum files available, which renders them impossible to install HOT 1
- Support for tinygo HOT 1
- Support `go.work` for tool version HOT 1
- go.mod is not an asdf-compatible version file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf-golang.