Skip to content

Commit

Permalink
fix root context issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalhoun committed Dec 16, 2024
1 parent 5b74f03 commit 1d23a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func Execute() error {
checkAtmosConfig(&atmosConfig)

// Now that we have fully parsed the Atmos config, add it to the context so it can be used by subcommands
ctx := context.WithValue(RootCmd.Context(), contextKey("atmos_config"), atmosConfig)
ctx := context.WithValue(context.Background(), contextKey("atmos_config"), atmosConfig)
RootCmd.SetContext(ctx)

return RootCmd.Execute()
Expand Down

0 comments on commit 1d23a43

Please sign in to comment.