Open lucasew opened 2 years ago
LOL
Please also convert the package to using buildNpmPackage when fixing this issue.
I think I found out the issue.
vercel dev
looks for the go version in go.mod to know which go version to get. So the ideal here is to wrap vercel in a FHS environment so it works. Sometimes it's intentional using an older version.
They are doing it wrong. The go keyword denotes the language version to use, not the compiler. They should just use the go version from PATH.
Describe the bug
I am doing a project and running it locally using vercel dev.
This project uses a Golang cloud function on the API folder
Instead of using the system Go or reference it as a dependency it's using the provided go from
@vercel/go
so it triggers that problem when you run a binary that expects a FHS system but it's NixOSSteps To Reproduce
Steps to reproduce the behavior:
api
folder using govercel dev
Expected behavior
vercel uses the system available Go, or the one declared as dependency
Screenshots
Additional context
github:NixOS/nixpkgs/73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58
nixos-unstableNotify maintainers
@kidonng
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.