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

Cannot find GOROOT directory: /home/runner/work/cyb3rko/MyProject #3

Open
cyb3rko opened this issue Mar 3, 2021 · 3 comments
Open

Comments

@cyb3rko
Copy link

cyb3rko commented Mar 3, 2021

I'm receiving the following error:
go: cannot find GOROOT directory: /home/runner/work/cyb3rko/DiscordCacheExtractor

What am I missing here?
Do I somehow have to define the goroot path?

@lukaszraczylo
Copy link

I spent quite a few builds on trying to debug it, kicked in after I specified all the parameters

      - name: Compile binary
        uses: thatisuday/go-cross-build@v1
        with:
          platforms: linux/amd64,darwin/amd64,windows/amd64,linux/arm64,darwin/amd64
          name: semver-gen
          package: ./
          compress: false
          dest: dist

@cyb3rko
Copy link
Author

cyb3rko commented May 9, 2021

Now I get a different error:

Creating a build using : /usr/local/go/bin/go build -buildmode exe -o /github/workspace/.output/program-linux-amd64 ./demo An error occurred during build: exit status 1 exit status 1

@lewislbr
Copy link

Fixed it by using thatisuday/go-cross-build@master, as v1 uses an old Go version.

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

3 participants