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
# 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 = ''
runHook preCheck
# We do not set trimpath for tests, in case they reference test assets
export GOFLAGS=''${GOFLAGS//-trimpath/}
buildGoDir test ./...
go test ./...
runHook postCheck
'';