Skip to content

Commit

Permalink
add deprecation warning (#4691)
Browse files Browse the repository at this point in the history
Co-authored-by: Gulom Alimov <[email protected]>
  • Loading branch information
Googlom and Gulom Alimov authored Nov 23, 2023
1 parent 9596f54 commit 0d6fb16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/checkIfStepActive.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func checkIfStepActive(utils piperutils.FileUtils) error {
runSteps = runConfigV1.RunSteps
runStages = runConfigV1.RunStages
} else {
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
"To avoid pipeline breakage, please call checkIfStepActive command with --useV1 flag.",
)
runConfig := &config.RunConfig{StageConfigFile: stageConfigFile}
err = runConfig.InitRunConfig(projectConfig, nil, nil, nil, nil, doublestar.Glob, checkStepActiveOptions.openFile)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions cmd/getDefaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func getDefaults() ([]map[string]string, error) {
var yamlContent string

if !defaultsOptions.useV1 {
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
"To avoid pipeline breakage, please call getDefaults command with --useV1 flag.",
)
var c config.Config
c.ReadConfig(fc)

Expand Down

0 comments on commit 0d6fb16

Please sign in to comment.