Skip to content

Commit 59c8133

Browse files
committed
Make feature flag value true instead of 1
1 parent 972e50b commit 59c8133

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

integrationtests/toolprovider/mise/install_nixpkgs_ruby_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func TestMiseInstallNixpkgsRuby(t *testing.T) {
5757
},
5858
}
5959

60-
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL", "1")
61-
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL_FORCE", "1")
60+
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL", "true")
61+
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL_FORCE", "true")
6262

6363
for _, tt := range tests {
6464
miseInstallDir := t.TempDir()

toolprovider/mise/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func installRequest(toolRequest provider.ToolRequest, useNix bool) provider.Tool
2727

2828
func canBeInstalledWithNix(tool provider.ToolRequest, execEnv execenv.ExecEnv) bool {
2929
// Force switch for integration testing. No fallback to regular install when this is active. This makes failures explicit.
30-
forceNix := os.Getenv("BITRISE_TOOLSETUP_FAST_INSTALL_FORCE") == "1"
30+
forceNix := os.Getenv("BITRISE_TOOLSETUP_FAST_INSTALL_FORCE") == "true"
3131
if forceNix {
3232
return true
3333
}

toolprovider/mise/install_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func TestCanBeInstalledWithNix(t *testing.T) {
251251
},
252252
}
253253

254-
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL", "1")
254+
t.Setenv("BITRISE_TOOLSETUP_FAST_INSTALL", "true")
255255
for _, tt := range tests {
256256
t.Run(tt.name, func(t *testing.T) {
257257
execEnv := newFakeExecEnv()

toolprovider/mise/nixpkgs/nixpkgs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func ShouldUseBackend(request provider.ToolRequest) bool {
2121
}
2222

2323
value, ok := os.LookupEnv("BITRISE_TOOLSETUP_FAST_INSTALL")
24-
if !ok || strings.TrimSpace(value) != "1" {
24+
if !ok || strings.TrimSpace(value) != "true" {
2525
log.Debugf("[TOOLPROVIDER] Using core mise plugin for %s", request.ToolName)
2626
return false
2727
}

0 commit comments

Comments
 (0)