mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-11-03 21:05:47 +03:00
Provide default value for src
in ./release.nix
(#42)
This simplifies local testing
This commit is contained in:
parent
4a904b4688
commit
ee0c74c79f
@ -297,12 +297,9 @@ project][hydra-project].
|
||||
|
||||
You can run the tests locally with the following somewhat magic command:
|
||||
```bash
|
||||
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { src.rev = ""; }'
|
||||
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { }'
|
||||
```
|
||||
|
||||
It is so because `release.nix` expects Hydra to provide the git revision in `src.rev`,
|
||||
but locally we don't have/want that, so we just call the function with an empty string.
|
||||
|
||||
### Changing the README
|
||||
|
||||
We build `README.md` from `docs/README.md.dhall` and check it into source control.
|
||||
|
@ -130,12 +130,9 @@ project][hydra-project].
|
||||
|
||||
You can run the tests locally with the following somewhat magic command:
|
||||
```bash
|
||||
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { src.rev = ""; }'
|
||||
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { }'
|
||||
```
|
||||
|
||||
It is so because `release.nix` expects Hydra to provide the git revision in `src.rev`,
|
||||
but locally we don't have/want that, so we just call the function with an empty string.
|
||||
|
||||
### Changing the README
|
||||
|
||||
We build `README.md` from `docs/README.md.dhall` and check it into source control.
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ src, ... }:
|
||||
{ src ? { rev = ""; }, ... }:
|
||||
let
|
||||
pkgs = import ./nixpkgs.nix;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user