Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Add full support for latest version of Go (1.21) #266

Open
percivalalb opened this issue Aug 25, 2023 · 0 comments
Open

Add full support for latest version of Go (1.21) #266

percivalalb opened this issue Aug 25, 2023 · 0 comments

Comments

@percivalalb
Copy link

percivalalb commented Aug 25, 2023

I encountered an issue when running go-lsif in the official docker image over a repo using go 1.21 which makes use of the newly introduced slices stdlib package:

<package>/<file>.go:7:2: package slices is not in GOROOT (/usr/local/go/src/slices)

I believe the docker image is shipped with 1.18 which is missing the new packages added in

  1. Therefore the version of go in the docker image needs bumping.
  2. The code generation script for https://github.com/sourcegraph/lsif-go/blob/master/internal/gomod/stdlib.go#L8 would also need re-running to include the new packages in this list.

This is by no means a complete list of what need doing, just a couple of the points I spotted with my limited knowledge of how go-lsif works.

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

No branches or pull requests

1 participant