Skip to content

Commit

Permalink
ci: fix distro to be a real enum (dagger#9103)
Browse files Browse the repository at this point in the history
Distro wasn't a proper enum type :( I got the syntax wrong when adding
it.

The enum members need to be *explicitly* declared to be of the distro
type to apply.

Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc authored Dec 18, 2024
1 parent 77cb4a6 commit 8c0cefb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .dagger/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
type Distro string

const (
DistroAlpine = "alpine"
DistroWolfi = "wolfi"
DistroUbuntu = "ubuntu"
DistroAlpine Distro = "alpine"
DistroWolfi Distro = "wolfi"
DistroUbuntu Distro = "ubuntu"
)

type DaggerEngine struct {
Expand Down

0 comments on commit 8c0cefb

Please sign in to comment.