Skip to content

Commit

Permalink
go: Set GOENV to environment cache
Browse files Browse the repository at this point in the history
Copied from our `--auto-setup` for Go projects.

I haven't copied `go get .` because:

1. There may not be a `go.mod` yet.
2. It's surplus when subsequent `go` commands will run it.
3. We're planning to remove it from the setup hook.
`
  • Loading branch information
dcarley committed Oct 16, 2024
1 parent 620fb3c commit 721e26d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/.flox/env/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ gore.pkg-path = "gore"
gotests.pkg-path = "gotests"
gotools.pkg-path = "gotools"

[hook]
on-activate = '''
# Point GOENV to Flox environment cache
export GOENV="$FLOX_ENV_CACHE/goenv"
'''

[options]
systems = ["aarch64-darwin", "aarch64-linux", "x86_64-darwin", "x86_64-linux"]

0 comments on commit 721e26d

Please sign in to comment.