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

Wrong GOROOT is used when go-licenses builds and runs on different environments #149

Open
jingyuanliang opened this issue Sep 14, 2022 · 3 comments

Comments

@jingyuanliang
Copy link
Contributor

jingyuanliang commented Sep 14, 2022

Unless a GOROOT is explicitly set, it uses the GOROOT from the build environment, which can be not reflecting the execution environment. See discussions in golang/go#51473.

@krutztq
Copy link

krutztq commented Oct 25, 2022

Same issue, here.

@Bobgy
Copy link
Collaborator

Bobgy commented Dec 7, 2022

As mentioned in the issue, a workaround is to set the GOROOT env when calling go licenses

radhus added a commit to einride/sage that referenced this issue Jan 4, 2023
Running go-licenses breaks after upgrading Go through Homebrew, as the
GOROOT path on the machine no longer matches the one used to build
go-licenses.

As a workaround, explicitly set GOROOT.

See google/go-licenses#149 for reference.
radhus added a commit to einride/sage that referenced this issue Jan 4, 2023
Running go-licenses breaks after upgrading Go through Homebrew, as the
GOROOT path on the machine no longer matches the one used to build
go-licenses.

As a workaround, explicitly set GOROOT.

See google/go-licenses#149 for reference.
radhus added a commit to einride/sage that referenced this issue Jan 4, 2023
Running go-licenses breaks after upgrading Go through Homebrew, as the
GOROOT path on the machine no longer matches the one used to build
go-licenses.

As a workaround, explicitly set GOROOT.

See google/go-licenses#149 for reference.
radhus added a commit to einride/sage that referenced this issue Jan 4, 2023
Running go-licenses breaks after upgrading Go through Homebrew, as the
GOROOT path on the machine no longer matches the one used to build
go-licenses.

As a workaround, explicitly set GOROOT.

See google/go-licenses#149 for reference.
@SuperSandro2000
Copy link

Are there any plans to fix this issue? 👀

SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 8, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 8, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 9, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 10, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 10, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 11, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 11, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 14, 2024
SuperSandro2000 added a commit to SuperSandro2000/nixpkgs that referenced this issue Jan 14, 2024
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

4 participants