Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/app/docs/continuous_integration/github_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
6 changes: 6 additions & 0 deletions internal/boxcli/featureflag/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion internal/boxcli/featureflag/script_exit_on_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")