File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
internal/boxcli/featureflag Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ jobs:
183
183
strategy :
184
184
matrix :
185
185
os : [ubuntu-latest, macos-13]
186
+ use-detsys : [true, false]
186
187
runs-on : ${{ matrix.os }}
187
188
steps :
188
189
- uses : actions/checkout@v4
@@ -197,6 +198,7 @@ jobs:
197
198
- name : Install nix and devbox packages
198
199
run : |
199
200
export NIX_INSTALLER_NO_CHANNEL_ADD=1
201
+ export DEVBOX_FEATURE_DETSYS_INSTALLER=${{ matrix.use-detsys }}
200
202
201
203
# Setup github authentication to ensure Github's rate limits are not hit.
202
204
# If this works, we can consider refactoring this into a reusable github action helper.
Original file line number Diff line number Diff line change 1
1
package featureflag
2
2
3
- var UseDetSysInstaller = cicdOnly ("DETSYS_INSTALLER" )
3
+ var UseDetSysInstaller = disable ("DETSYS_INSTALLER" )
Original file line number Diff line number Diff line change @@ -43,13 +43,6 @@ func enable(name string) *feature {
43
43
return features [name ]
44
44
}
45
45
46
- func cicdOnly (name string ) * feature {
47
- if os .Getenv ("CI" ) != "" || os .Getenv ("CIRCLECI" ) != "" || os .Getenv ("GITHUB_ACTIONS" ) != "" {
48
- enable (name )
49
- }
50
- return disable (name )
51
- }
52
-
53
46
var logMap = map [string ]bool {}
54
47
55
48
func (f * feature ) Enabled () bool {
You can’t perform that action at this time.
0 commit comments