diff --git a/docs/app/docs/continuous_integration/github_action.md b/docs/app/docs/continuous_integration/github_action.md index 9bceff6511c..d71d5dfb57c 100644 --- a/docs/app/docs/continuous_integration/github_action.md +++ b/docs/app/docs/continuous_integration/github_action.md @@ -45,3 +45,5 @@ jobs: ## Configuring the Action See the [GitHub Marketplace page](https://github.com/marketplace/actions/devbox-installer) for the latest configuration settings and an example. + +For stability over new features and bug fixes, consider pinning `devbox-version`. Remember to update this pinned version when you update your local Devbox via `devbox version update`. diff --git a/internal/boxcli/featureflag/feature.go b/internal/boxcli/featureflag/feature.go index d70f9835fe2..49ddadff8a4 100644 --- a/internal/boxcli/featureflag/feature.go +++ b/internal/boxcli/featureflag/feature.go @@ -19,6 +19,9 @@ type feature struct { var features = map[string]*feature{} +// Prevent lint complaining about unused function +// +//nolint:unparam func disable(name string) *feature { if features[name] == nil { features[name] = &feature{name: name} @@ -27,6 +30,9 @@ func disable(name string) *feature { return features[name] } +// Prevent lint complaining about unused function +// +//nolint:unparam func enable(name string) *feature { if features[name] == nil { features[name] = &feature{name: name} diff --git a/internal/boxcli/featureflag/script_exit_on_error.go b/internal/boxcli/featureflag/script_exit_on_error.go index e5a562cb250..920d034e2fb 100644 --- a/internal/boxcli/featureflag/script_exit_on_error.go +++ b/internal/boxcli/featureflag/script_exit_on_error.go @@ -5,4 +5,4 @@ package featureflag // ScriptExitOnError controls whether scripts defined in devbox.json // and executed via `devbox run` should exit if any command within them errors. -var ScriptExitOnError = disable("SCRIPT_EXIT_ON_ERROR") +var ScriptExitOnError = enable("SCRIPT_EXIT_ON_ERROR")