Skip to content

Error out when deprecated fields are found in activestate.yaml#2321

Merged
Naatan merged 3 commits intoversion/0-36-0-RC1from
DX-1456
Jan 24, 2023
Merged

Error out when deprecated fields are found in activestate.yaml#2321
Naatan merged 3 commits intoversion/0-36-0-RC1from
DX-1456

Conversation

@Naatan
Copy link
Copy Markdown
Contributor

@Naatan Naatan commented Jan 24, 2023

TaskDX-1456 We detect outdated as.yamls and error out

@Naatan Naatan requested a review from MDrakos January 24, 2023 19:51
@github-actions github-actions Bot changed the base branch from master to version/0-36-0-RC1 January 24, 2023 19:52
}
return &ErrorParseProject{locale.NewInputError(
"pjfile_deprecation_msg",
"", configFilepath, strings.Join(deplist, "\n"), constants.DocumentationURL+"config/#deprecation"),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread pkg/projectfile/projectfile.go Outdated

project := Project{}
err = yaml.Unmarshal([]byte(dat), &project)
err = yaml.Unmarshal(dat, &project)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should fix this to not reuse the error.

@Naatan Naatan requested a review from MDrakos January 24, 2023 21:41
@Naatan Naatan merged commit adc17bf into version/0-36-0-RC1 Jan 24, 2023
@Naatan Naatan deleted the DX-1456 branch January 24, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants