Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnchildren/nix-empty-go-modules
Demoing an edge case with buildGoModules
https://github.com/johnchildren/nix-empty-go-modules
Last synced: about 20 hours ago
JSON representation
Demoing an edge case with buildGoModules
- Host: GitHub
- URL: https://github.com/johnchildren/nix-empty-go-modules
- Owner: johnchildren
- Created: 2019-05-23T16:32:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T16:45:45.000Z (over 5 years ago)
- Last Synced: 2024-10-11T23:42:29.147Z (27 days ago)
- Language: Nix
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demoing the failure of buildGoModules when the go.mod file contains no dependencies
If you build this repository you will get this result:
```
builder for '/nix/store/czi1xw8sb2g96wi3kvc704j7azjpqz0h-foo-go-modules.drv' failed with exit code 1; last 8 log lines:
unpacking sources
unpacking source archive /nix/store/p684jrpz8k5ps7y45w741g4dxr8x325c-empty-go-modules
source root is empty-go-modules
patching sources
configuring
building
installing
cp: cannot stat '/build/go/pkg/mod/cache/download': No such file or directory
cannot build derivation '/nix/store/4kcg0p5vy5pvbvkvbgpbkjkqlkwsbyyb-foo.drv': 1 dependencies couldn't be built
[0 built (1 failed), 0.0 MiB DL]
error: build of '/nix/store/4kcg0p5vy5pvbvkvbgpbkjkqlkwsbyyb-foo.drv' failed
```This is because the go module cache is not created if there are no modules to cache.