1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 02:55:39 +03:00

Warn instead of fail on dirty worktree

Fixes #119
This commit is contained in:
oxalica 2024-01-07 14:49:20 +08:00
parent e72b98fed5
commit ff231923ed

View File

@ -16,7 +16,7 @@ rec {
mtime = self.lastModifiedDate;
date = "${substring 0 4 mtime}-${substring 4 2 mtime}-${substring 6 2 mtime}";
rev = self.rev or (throw "Git changes are not committed");
rev = self.rev or (lib.warn "Git changes are not committed" (self.dirtyRev or "dirty"));
mkNil = { rustPlatform, nixUnstable, ... }:
rustPlatform.buildRustPackage {