Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't fail validation when no RuntimesConfig #48

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

joshuaauerbachwatson
Copy link
Contributor

This relaxation allows projects to be read (including project.yml) when there are runtime declarations in project.yml but the actual RuntimesConfig wasn't read. There are valid cases for this when the caller has no credential store and no API host in the environment but is just inspecting a project. For example, in the CLI, project get-metadata passes in an empty RuntimesConfig. It is true that invalid runtimes may be accepted in that use-case (only).

This relaxation allows projects to be read (including project.yml) when
there are runtime decls in the config but the actual RuntimesConfig
wasn't read.  There are valid cases for this when the caller has no
credential store and no API host in the environment but is just
inspecting a project.  It is true that invalid runtimes may be
accepted in that use-case (only).
@joshuaauerbachwatson joshuaauerbachwatson merged commit 0cda35f into master Jan 12, 2022
@joshuaauerbachwatson joshuaauerbachwatson deleted the relax-runtime-validation branch January 12, 2022 15:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant