Skip to content

Commit 5ac4a1b

Browse files
authored
Merge pull request #174 from DeterminateSystems/nar-hash-field-optional
Make `narHash` field optional for locked inputs
2 parents 4fcae04 + 9092cab commit 5ac4a1b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flake-checker"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2021"
55

66
[workspace]

parse-flake-lock/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub struct RepoLocked {
269269
pub last_modified: i64,
270270
/// The NAR hash of the input.
271271
#[serde(alias = "narHash")]
272-
pub nar_hash: String,
272+
pub nar_hash: Option<String>,
273273
/// The repository owner.
274274
pub owner: String,
275275
/// The repository.
@@ -340,7 +340,7 @@ pub struct PathLocked {
340340
pub last_modified: i64,
341341
/// The NAR hash of the input.
342342
#[serde(alias = "narHash")]
343-
pub nar_hash: String,
343+
pub nar_hash: Option<String>,
344344
/// The relative filesystem path for the input.
345345
pub path: PathBuf,
346346
/// The type of the node (always `"path"`).
@@ -380,7 +380,7 @@ pub struct TarballLocked {
380380
pub last_modified: Option<i64>,
381381
/// The NAR hash of the input.
382382
#[serde(alias = "narHash")]
383-
pub nar_hash: String,
383+
pub nar_hash: Option<String>,
384384
/// The type of the node (always `"tarball"`).
385385
#[serde(alias = "type")]
386386
pub node_type: String,

0 commit comments

Comments
 (0)