Skip to content

Commit

Permalink
code-comment reminder for feature flags (#3512)
Browse files Browse the repository at this point in the history
A friendly reminder, stemming from the discussion in
earthly/earthly#3510 (comment)

Signed-off-by: Alex Couture-Beil <[email protected]>
  • Loading branch information
alexcb authored Nov 20, 2023
1 parent 6610b73 commit ef4fc54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ast/commandflag/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import (
"time"
)

// NOTE: Any new flags must be accompanied by the introduction of a new `VERSION` feature flag.
// This applies to new features which do **not** break backwards compatibility, which is needed
// to ensure an Earthfile that uses `VERSION 0.7` can be built by **any** of the earthly-v0.7.x binaries.

type IfOpts struct {
Privileged bool `long:"privileged" description:"Enable privileged mode"`
WithSSH bool `long:"ssh" description:"Make available the SSH agent of the host"`
Expand Down

0 comments on commit ef4fc54

Please sign in to comment.