Skip to content

Commit

Permalink
remove unneeded logs
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Mar 4, 2025
1 parent 3398383 commit 2a2f33b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ func GenerateConfigFromFile(app *app.App, env *app.Environment, options *Generat

logger.LogInfo("Using config file `%s`", configFileName)

fmt.Printf("CONFIG: %v\n", config)
for _, step := range config.Steps {
fmt.Printf("STEP: %v (nil? %v)\n", step.Secrets, step.Secrets == nil)
}

return config, nil
}

Expand Down
7 changes: 0 additions & 7 deletions core/generate/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,11 @@ func (c *GenerateContext) applyConfig() {
}))
}

fmt.Printf("COMMANDS FROM CONFIG: %v\n", configStep.Commands)

commandStepBuilder.Commands = plan.Spread(configStep.Commands, commandStepBuilder.Commands)
commandStepBuilder.Inputs = plan.Spread(configStep.Inputs, commandStepBuilder.Inputs)

fmt.Printf("SECRETS FROM CONFIG: %v\n", configStep.Secrets)
fmt.Printf("SECRETS FROM COMMAND STEP BUILDER: %v\n", commandStepBuilder.Secrets)

commandStepBuilder.Secrets = plan.SpreadStrings(configStep.Secrets, commandStepBuilder.Secrets)

fmt.Printf("SECRETS AFTER SPREAD: %v\n", commandStepBuilder.Secrets)

commandStepBuilder.Caches = plan.SpreadStrings(configStep.Caches, commandStepBuilder.Caches)
commandStepBuilder.AddEnvVars(configStep.Variables)
maps.Copy(commandStepBuilder.Assets, configStep.Assets)
Expand Down

0 comments on commit 2a2f33b

Please sign in to comment.