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:
parent
439fe1fb0f
commit
fa086c248d
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue