Difficulties debugging GitHub actions that use nix-shell #556
Labels
area/ci-cd-release
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Expected Behaviour
When contributing to Tinkerbell, it should be easy to debug and fix failing CI tests for PRs.
Current Behaviour
The
ci-checks.sh
script usesnix-shell
, which is not a standard shell in most Linux distributions. For developers using macOS or common Linux distributions, it is not clear how to debug CI failures. When you try to run theci-checks.sh
script without nix-shell installed, you'll get the following outputPossible Solution
I think we have at least two options:
docker run -it --rm \ -v `pwd`:/go/src/github.com/tinkerbell/tink \ -w /go/src/github.com/tinkerbell/tink \ nixos/nix nix-shell ci-checks.sh
Your Environment
The text was updated successfully, but these errors were encountered: