go-cross-build icon indicating copy to clipboard operation
go-cross-build copied to clipboard

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

Open cyb3rko opened this issue 4 years ago • 3 comments

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?

cyb3rko avatar Mar 03 '21 21:03 cyb3rko

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

lukaszraczylo avatar May 09 '21 09:05 lukaszraczylo

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

cyb3rko avatar May 09 '21 14:05 cyb3rko

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

lewislbr avatar Oct 23 '21 17:10 lewislbr