Skip to content

Commit d41ec12

Browse files
committed
Re-introduce path: prefix
1 parent 356b139 commit d41ec12

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/nix_rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "nix_rs"
33
# Important: remember to update the top-level Cargo.toml if updating major version
4-
version = "1.2.1"
4+
version = "1.2.2"
55
license = "Apache-2.0"
66
repository = "https://github.com/juspay/omnix"
77
description = "Rust library for interacting with the Nix command"

crates/nix_rs/src/flake/url/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl From<PathBuf> for FlakeUrl {
133133
impl From<&Path> for FlakeUrl {
134134
fn from(path: &Path) -> Self {
135135
// We do not use `path:` here, because that will trigger copying to the Nix store.
136-
FlakeUrl(format!("{}", path.display()))
136+
FlakeUrl(format!("path:{}", path.display()))
137137
}
138138
}
139139

@@ -252,7 +252,7 @@ mod tests {
252252
assert_eq!(url.sub_flake_url(".".to_string()), url.clone());
253253
assert_eq!(
254254
url.sub_flake_url("sub".to_string()),
255-
FlakeUrl("./sub".to_string())
255+
FlakeUrl("path:./sub".to_string())
256256
);
257257

258258
// URI refs

crates/omnix-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "omnix-cli"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
edition = "2021"
55
default-run = "om"
66
# NOTE: The 'description' here will be printed in `om` CLI banner (thanks to `clap` crate)

doc/src/history.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.0.4 (UNRELEASED)
44

55
- `om ci`: Allow impure builds through `impure = true;` setting in `om.yaml` (#445)
6+
- `nix_rs`: Use `path:` flake URL protocol for local flakes (#448)
67

78
## 1.0.3 (2025-03-17) {#1.0.3}
89

0 commit comments

Comments
 (0)