Code Monkey home page Code Monkey logo

Comments (6)

wlads avatar wlads commented on August 22, 2024 1

@jamilbk after changing the golang version did you open a new terminal?

from asdf-golang.

carlca avatar carlca commented on August 22, 2024

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.

wlads avatar wlads commented on August 22, 2024

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.

jamilbk avatar jamilbk commented on August 22, 2024

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.

kennyp avatar kennyp commented on August 22, 2024

I think we're all good here, but let me know if I'm missing something @carlca.

from asdf-golang.

andrelaszlo avatar andrelaszlo commented on August 22, 2024

Also check your shell rc files for old GOROOT and GOPATH entries.

from asdf-golang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.