This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-29
Channels
- # announcements (6)
- # babashka (23)
- # beginners (15)
- # biff (15)
- # calva (17)
- # clara (5)
- # clj-kondo (41)
- # cljdoc (2)
- # cljs-dev (67)
- # cljsrn (18)
- # clojure (19)
- # clojure-europe (25)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojurescript (26)
- # core-typed (6)
- # cursive (15)
- # data-science (30)
- # datahike (1)
- # datomic (18)
- # docker (6)
- # emacs (10)
- # events (2)
- # graalvm (15)
- # graphql (5)
- # hugsql (4)
- # jobs-discuss (1)
- # joker (7)
- # lsp (36)
- # malli (28)
- # off-topic (46)
- # other-languages (1)
- # pathom (5)
- # pedestal (6)
- # polylith (5)
- # reitit (2)
- # releases (1)
- # rewrite-clj (63)
- # shadow-cljs (7)
- # spacemacs (16)
- # squint (6)
- # tools-deps (6)
- # xtdb (13)
on gostd fork I get
go1.18.6 generate ./...
#
./gotypes.go:18:8: undefined: SwitchGoType
./gotypes.go:19:25: undefined: GoTypesVec
./gotypes.go:23:9: undefined: GoTypesVec
core/object.go:3: running "go": exit status 2
I haven’t tried Go 1.18 lately (I know it doesn’t work with Go 1.19 due to the std using newer language features). But I don’t think the way you’re running it will work – go generate can’t be run until after tools/gostd/gostd is run, as per the docs. I think the run.sh script (in that fork and on its gostd branch) should build it for you properly.
run.sh doesnt work for me with go1.18 (gostd branch, f1accf1f 3 weeks ago Regen Dash docs)
$alias go=go1.18.6
$ ./run.sh
std has changed, rebuilding...
#
./g_goswitch.go:1623:8: cannot use generic type "sync/atomic".Pointer[T any] without instantiation
./g_goswitch.go:3819:9: cannot use generic type "sync/atomic".Pointer[T any] without instantiation
./g_goswitch.go:5581:7: cannot use generic type "sync/atomic".Pointer[T any] without instantiation
core/object.go:3: running "go": exit status 2
I wonder if the go
command refers to a different version than go1.18.6
, such that the Go std lib source code found by the tools/gostd/gostd
tool is, e.g. Go 1.19? That might cause something like the above.
My workflow always involves ensuring that which go
is not just an alias, but either a file or a symlink to a file that is the desired version of Go.