Skip to content

Commit 6d834da

Browse files
committed
nochangelog: actually, this is not backwards compatible.
1 parent 8754896 commit 6d834da

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

internal/frontend/cuefrontend/fetchers.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,13 @@ func FetchFocusServer(serverImageRef string, srv *schema.Server) FetcherFunc {
269269

270270
func FetchEnv(env *schema.Environment, workspace *schema.Workspace) FetcherFunc {
271271
return func(context.Context, cue.Value) (interface{}, error) {
272-
e := cueEnv{Name: env.Name, Runtime: env.Runtime, Purpose: env.Purpose.String()}
273-
// Before 26, ephemeral was not a field.
274-
if workspace.GetFoundation().GetMinimumApi() > 26 {
275-
ephemeral := env.Ephemeral
276-
e.Ephemeral = &ephemeral
277-
}
278-
return e, nil
272+
return cueEnv{Name: env.Name, Runtime: env.Runtime, Purpose: env.Purpose.String(), Ephemeral: env.Ephemeral}, nil
279273
}
280274
}
281275

282276
type cueEnv struct {
283277
Name string `json:"name"`
284278
Runtime string `json:"runtime"`
285279
Purpose string `json:"purpose"`
286-
Ephemeral *bool `json:"ephemeral,omitempty"`
280+
Ephemeral bool `json:"ephemeral"`
287281
}

0 commit comments

Comments
 (0)