Skip to content

Commit e4b5419

Browse files
authored
[cli-tests] fix by pinning dependencies in rails examples (#1408)
## Summary We pin yarn to a version that has pre-built binaries. We also update the nodejs version so it is pinned to a nixpkgs hash commit that has pre-built binaries. From my tests (see PRs stacked from #1388), I think this should fix the cli-tests that were timing out for nix 2.17 ## How was it tested? tested locally via running `devbox shell`.
1 parent b48fd04 commit e4b5419

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

examples/stacks/rails/blog/Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ GEM
127127
nio4r (2.5.9)
128128
nokogiri (1.14.3-arm64-darwin)
129129
racc (~> 1.4)
130+
nokogiri (1.14.3-x86_64-darwin)
131+
racc (~> 1.4)
130132
nokogiri (1.14.3-x86_64-linux)
131133
racc (~> 1.4)
132134
public_suffix (5.0.1)
@@ -180,6 +182,7 @@ GEM
180182
activesupport (>= 5.2)
181183
sprockets (>= 3.0.0)
182184
sqlite3 (1.6.2-arm64-darwin)
185+
sqlite3 (1.6.2-x86_64-darwin)
183186
sqlite3 (1.6.2-x86_64-linux)
184187
stimulus-rails (1.2.1)
185188
railties (>= 6.0.0)
@@ -213,6 +216,7 @@ GEM
213216
PLATFORMS
214217
arm64-darwin-21
215218
arm64-darwin-22
219+
x86_64-darwin-22
216220
x86_64-linux
217221

218222
DEPENDENCIES

examples/stacks/rails/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
"bundler@latest",
55
"nodejs@19",
6-
"yarn@latest",
6+
"yarn@1.22",
77
"curl@latest",
88
"sqlite@latest"
99
],

examples/stacks/rails/devbox.lock

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,40 @@
22
"lockfile_version": "1",
33
"packages": {
44
"bundler@latest": {
5-
"last_modified": "2023-05-01T16:53:22Z",
6-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#bundler",
7-
"version": "2.4.12"
5+
"last_modified": "2023-07-30T12:29:02Z",
6+
"resolved": "github:NixOS/nixpkgs/3acb5c4264c490e7714d503c7166a3fde0c51324#bundler",
7+
"source": "devbox-search",
8+
"version": "2.4.17"
89
},
910
"curl@latest": {
10-
"last_modified": "2023-05-01T16:53:22Z",
11-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#curl",
12-
"version": "8.0.1"
11+
"last_modified": "2023-08-08T03:07:33Z",
12+
"resolved": "github:NixOS/nixpkgs/844ffa82bbe2a2779c86ab3a72ff1b4176cec467#curl",
13+
"source": "devbox-search",
14+
"version": "8.1.2"
1315
},
1416
"nodejs@19": {
15-
"last_modified": "2023-05-01T16:53:22Z",
16-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#nodejs_19",
17+
"last_modified": "2023-05-14T19:13:12Z",
18+
"resolved": "github:NixOS/nixpkgs/3007746b3f5bfcb49e102b517bca891822a41b31#nodejs-19_x",
19+
"source": "devbox-search",
1720
"version": "19.9.0"
1821
},
1922
2023
"last_modified": "2023-05-01T16:53:22Z",
21-
"plugin_version": "0.0.1",
24+
"plugin_version": "0.0.2",
2225
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#ruby",
2326
"version": "3.1.4"
2427
},
2528
"sqlite@latest": {
26-
"last_modified": "2023-05-01T16:53:22Z",
27-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#sqlite",
28-
"version": "3.41.2"
29+
"last_modified": "2023-06-30T04:44:22Z",
30+
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#sqlite",
31+
"source": "devbox-search",
32+
"version": "3.42.0"
2933
},
30-
"yarn@latest": {
31-
"last_modified": "2023-05-01T16:53:22Z",
32-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#yarn",
34+
35+
"last_modified": "2023-05-21T19:52:09Z",
36+
"resolved": "github:NixOS/nixpkgs/9356eead97d8d16956b0226d78f76bd66e06cb60#yarn",
37+
"source": "devbox-search",
3338
"version": "1.22.19"
3439
}
3540
}
36-
}
41+
}

0 commit comments

Comments
 (0)