Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix config normalise #987

Merged
merged 6 commits into from
Jul 30, 2024
Merged

Fix config normalise #987

merged 6 commits into from
Jul 30, 2024

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Jul 30, 2024

Checklist

Version

Requires a PATCH version update

Context

This PR fixes the bitrise config normalization. Normalization converts maps with interface{} keys to string-keyed maps, to make the config JSON compatible.

@@ -655,7 +716,7 @@ func validateWorkflows(config *BitriseDataModel) ([]string, error) {
}

// TODO: Why is this assignment needed?
stepListItem[stepID] = step
stepListItem[stepID] = *step
Copy link
Contributor Author

@godrei godrei Jul 30, 2024

Choose a reason for hiding this comment

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

Here we reassigned the step with a pointer type, that's why we had to handle both pointer and value type steps here: https://github.com/bitrise-io/bitrise/pull/987/files#diff-1bb32c53b12166a3a66db70cbe1be4356cbc8adac0b84d14887022d830f8594aL1319

@godrei godrei marked this pull request as ready for review July 30, 2024 08:18
tothszabi
tothszabi previously approved these changes Jul 30, 2024
@godrei godrei merged commit db63613 into master Jul 30, 2024
5 checks passed
@godrei godrei deleted the fix-config-normalise branch July 30, 2024 13:21
@godrei godrei mentioned this pull request Jul 30, 2024
2 tasks
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