Skip to content

Commit 1382226

Browse files
committed
add test
1 parent e21a8cc commit 1382226

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Python Auto-Patch Handles Missing Ref
2+
#
3+
# Check that `devbox patch --restore-refs` doesn't break the flake build when a
4+
# a store path cannot be restored.
5+
#
6+
# The nixpkgs commit hash and version of Python chosen in this test is very
7+
# specific. Most versions don't encounter this error, so be careful that the
8+
# test still fails with Devbox v0.13.0 if changing the devbox.lock.
9+
#
10+
# https://github.com/jetify-com/devbox/issues/2289
11+
12+
exec devbox install
13+
14+
-- devbox.json --
15+
{
16+
"packages": {
17+
"python": "latest"
18+
},
19+
"env": {
20+
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
21+
"PIP_NO_INPUT": "1",
22+
"PIP_NO_PYTHON_VERSION_WARNING": "1",
23+
"PIP_PROGRESS_BAR": "off",
24+
"PIP_REQUIRE_VIRTUALENV": "1",
25+
"PIP_ROOT_USER_ACTION": "ignore"
26+
},
27+
"shell": {
28+
"scripts": {
29+
"venv": ". $VENV_DIR/bin/activate && \"$@\""
30+
}
31+
}
32+
}
33+
34+
-- devbox.lock --
35+
{
36+
"lockfile_version": "1",
37+
"packages": {
38+
"python@latest": {
39+
"last_modified": "2024-09-10T15:01:03Z",
40+
"plugin_version": "0.0.4",
41+
"resolved": "github:NixOS/nixpkgs/5ed627539ac84809c78b2dd6d26a5cebeb5ae269#python3",
42+
"source": "devbox-search",
43+
"version": "3.12.5",
44+
"systems": {
45+
"aarch64-darwin": {
46+
"outputs": [
47+
{
48+
"name": "out",
49+
"path": "/nix/store/9pj4rzx5pbynkkxq1srzwjhywmcfxws3-python3-3.12.5",
50+
"default": true
51+
}
52+
],
53+
"store_path": "/nix/store/9pj4rzx5pbynkkxq1srzwjhywmcfxws3-python3-3.12.5"
54+
},
55+
"aarch64-linux": {
56+
"outputs": [
57+
{
58+
"name": "out",
59+
"path": "/nix/store/6iq3nhgdyp8a5wzwf097zf2mn4zyqxr6-python3-3.12.5",
60+
"default": true
61+
},
62+
{
63+
"name": "debug",
64+
"path": "/nix/store/xc4hygp28y7g1rvjf0vi7fj0d83a75pj-python3-3.12.5-debug"
65+
}
66+
],
67+
"store_path": "/nix/store/6iq3nhgdyp8a5wzwf097zf2mn4zyqxr6-python3-3.12.5"
68+
},
69+
"x86_64-darwin": {
70+
"outputs": [
71+
{
72+
"name": "out",
73+
"path": "/nix/store/ks8acr22s4iggnmvxydm5czl30racy32-python3-3.12.5",
74+
"default": true
75+
}
76+
],
77+
"store_path": "/nix/store/ks8acr22s4iggnmvxydm5czl30racy32-python3-3.12.5"
78+
},
79+
"x86_64-linux": {
80+
"outputs": [
81+
{
82+
"name": "out",
83+
"path": "/nix/store/h3i0acpmr8mrjx07519xxmidv8mpax4y-python3-3.12.5",
84+
"default": true
85+
},
86+
{
87+
"name": "debug",
88+
"path": "/nix/store/0a39pi2s6kxqc3kjjz2y9yzibd62zhhb-python3-3.12.5-debug"
89+
}
90+
],
91+
"store_path": "/nix/store/h3i0acpmr8mrjx07519xxmidv8mpax4y-python3-3.12.5"
92+
}
93+
}
94+
}
95+
}
96+
}

0 commit comments

Comments
 (0)