1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

flyctl: do not run tests with the flags used by the build

(cherry picked from commit 3022e36db0)
This commit is contained in:
Raghav Sood 2024-06-18 15:13:18 +08:00
parent 439fe1fb0f
commit fa086c248d
No known key found for this signature in database
GPG key ID: 13D53E9EB65DE19C

View file

@ -35,12 +35,14 @@ buildGoModule rec {
''; '';
# We override checkPhase to be able to test ./... while using subPackages # We override checkPhase to be able to test ./... while using subPackages
# Temporary fix for https://github.com/superfly/flyctl/issues/3642. We
# should go back to buildGoDir instead of go test once that is resolved.
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
# We do not set trimpath for tests, in case they reference test assets # We do not set trimpath for tests, in case they reference test assets
export GOFLAGS=''${GOFLAGS//-trimpath/} export GOFLAGS=''${GOFLAGS//-trimpath/}
buildGoDir test ./... go test ./...
runHook postCheck runHook postCheck
''; '';