Skip to content

Conversation

savil
Copy link
Collaborator

@savil savil commented Nov 2, 2022

Summary

We add nixpkgs.version to devbox.json if it is missing.

How was it tested?

> cd testdata/rust/rust-stable

# control
> DEVBOX_DEBUG=1 devbox shell
> git diff devbox.json
# no change as expected


> DEVBOX_FEATURE_NIXPKG_VERSION=1 DEVBOX_DEBUG=1 devbox shell
> git diff devbox.json
diff --git a/testdata/rust/rust-stable/devbox.json b/testdata/rust/rust-stable/devbox.json
index 89b7c0d..028385d 100644
--- a/testdata/rust/rust-stable/devbox.json
+++ b/testdata/rust/rust-stable/devbox.json
@@ -7,5 +7,8 @@
     "init_hook": [
       "source init-shell.sh"
     ]
+  },
+  "nixpkgs": {
+    "version": "af9e00071d0971eb292fd5abef334e66eda3cb69"
   }
-}
+}
\ No newline at end of file

Copy link
Collaborator Author

savil commented Nov 2, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil force-pushed the savil/write-nixpkgs-in-config branch from e93e423 to 04127be Compare November 2, 2022 00:41
@savil savil requested review from loreto and LucilleH November 2, 2022 00:42
@savil savil marked this pull request as ready for review November 2, 2022 00:42
@savil savil force-pushed the savil/write-nixpkgs-in-config branch from 04127be to 5b1808c Compare November 2, 2022 18:29
@savil savil merged commit 402a343 into main Nov 2, 2022
@savil savil deleted the savil/write-nixpkgs-in-config branch November 2, 2022 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants