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

Read config file content if missing #517

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

aksiksi
Copy link
Contributor

@aksiksi aksiksi commented Dec 21, 2023

This ensures that project name validation occurs in cases where the content is missing (e.g., when constructed via ToConfigFiles).

I opted to do the read during project name parsing for two reasons:

  1. It addresses all cases where Content is not set (not just ToConfigFiles).
  2. It does not require a (breaking?) change to the ToConfigFiles function.

I also had to fix a few tests that were not setting the project correctly.

Fixes #489.

@aksiksi aksiksi requested a review from ndeloof as a code owner December 21, 2023 18:01
@aksiksi
Copy link
Contributor Author

aksiksi commented Dec 21, 2023

@ndeloof Looks like I mistakenly closed the other PR. Didn't know that an empty push would automatically close it...

Anyhow, this commit should be signed off.

@aksiksi aksiksi force-pushed the main branch 2 times, most recently from bd5321f to e30db43 Compare December 21, 2023 19:06
This ensures that project name validation occurs in cases where the
content is missing (e.g., when constructed via ToConfigFiles).

Signed-off-by: Assil Ksiksi <[email protected]>
@ndeloof ndeloof merged commit 2a3ce93 into compose-spec:main Dec 21, 2023
7 of 8 checks passed
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.

Project name not checked when using ToConfigFiles
2 participants