tea-create-pr: get rid of runtime nix eval
...instead use our treefmt wrapper derivation which is exactly the same but doesn't require an eval at runtime
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
git,
|
||||
tea,
|
||||
openssh,
|
||||
# our formatter
|
||||
formatter,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "tea-create-pr";
|
||||
@@ -14,6 +16,9 @@ writeShellApplication {
|
||||
git
|
||||
tea
|
||||
openssh
|
||||
|
||||
# our treefmt formatter wrapped with correct config
|
||||
formatter
|
||||
];
|
||||
text = builtins.readFile ./script.sh;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ if ! check_remote "$remoteUpstream"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nix fmt -- --fail-on-change --no-cache
|
||||
treefmt --fail-on-change --no-cache
|
||||
|
||||
upstream_url=$(git remote get-url "$remoteUpstream")
|
||||
set -x
|
||||
|
||||
Reference in New Issue
Block a user