diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1c9d7f..d6902ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,6 @@ name: Build on: + pull_request: push: jobs: build: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e79f471..1a3b740 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -1,6 +1,7 @@ name: Linters on: + pull_request: push: jobs: linters: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7acf129..b3fc80d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,6 @@ name: Tests on: + pull_request: push: jobs: tests: diff --git a/src/nix/hive/assets.rs b/src/nix/hive/assets.rs index 29eba43..9e1f154 100644 --- a/src/nix/hive/assets.rs +++ b/src/nix/hive/assets.rs @@ -51,7 +51,10 @@ impl Assets { // We explicitly specify `path:` instead of letting Nix resolve // automatically, which would involve checking parent directories // for a git repository. - let uri = format!("path:{}", temp_dir.path().to_str().unwrap()); + let uri = format!( + "path:{}", + temp_dir.path().canonicalize().unwrap().to_str().unwrap() + ); let _ = lock_flake_quiet(&uri).await; let assets_flake = Flake::from_uri(uri).await?; assets_flake_uri = Some(assets_flake.locked_uri().to_owned());