Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 660
    • Issues 660
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 340
    • Merge requests 340
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • aportsaports
  • Issues
  • #10737
Closed
Open
Issue created Aug 18, 2019 by Sören Tempel@nmeumMaintainer

GOCACHE is not disabled by default

During the go package rebuild I noticed that testing/singularity fails with errors like:

/usr/lib/go/src/strconv/atof.go:13:8: can't open import: "math": open /home/buildozer/.cache/go-build/79/79d9756126d791338847a2dbc18ee32a7b97d2a211859da41333ad0c3aab0060-d: no such file or directory

It builds fine locally though.

These errors seem to be related to the Go compiler. It seems that some distributions disable the compiler cache for their builders which might be a good idea. Void Linux, for instance, disables it through their go template file: https://github.com/void-linux/void-packages/blob/371de6a0318b1e7ad86c26e84d946c66004e44d9/srcpkgs/go/template#L34

One very easy way to disable it in alpine would be adding export GOCACHE=off to /etc/abuild.conf.

Edited Aug 18, 2019 by Sören Tempel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking