Skip to content

Commit 8f579b2

Browse files
authored
[update] remove test hardcode (#1024)
## Summary :facepalm: I'm so sorry. I added these hardcodes last minute to do a sanity test and forgot to undo the change. ## How was it tested? Will test
1 parent 8661579 commit 8f579b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/vercheck/vercheck.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/pkg/errors"
1818
"github.com/samber/lo"
1919
"go.jetpack.io/devbox/internal/boxcli/usererr"
20+
"go.jetpack.io/devbox/internal/build"
2021
"go.jetpack.io/devbox/internal/cmdutil"
2122
"go.jetpack.io/devbox/internal/envir"
2223
"go.jetpack.io/devbox/internal/ux"
@@ -35,12 +36,12 @@ const envName = "__DEVBOX_VERSION_CHECK"
3536

3637
// currentDevboxVersion is the version of the devbox CLI binary that is currently running.
3738
// We use this variable so that we can mock it in tests.
38-
var currentDevboxVersion = "0.4.8" // build.Version
39+
var currentDevboxVersion = build.Version
3940

4041
// isDevBuild determines whether this CLI binary was built during development, or published
4142
// as a release.
4243
// We use this variable so we can mock it in tests.
43-
var isDevBuild = false // build.IsDev
44+
var isDevBuild = build.IsDev
4445

4546
var commandSkipList = []string{
4647
"devbox global shellenv",

0 commit comments

Comments
 (0)