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

Always validate the entrypoint, no matter its source. #767

Merged
merged 6 commits into from
May 16, 2022

Conversation

facundobatista
Copy link
Contributor

The code is somewhat entangled, because we're currently supporting different sources for entrypoint: configuration, command line option (deprecated), and the default when the developer didn't specify anything.

Besides the several explicit cases that I started to validate, I added one validation for the case of writing the absolute path in the config, which was missing, surely because when the parts lifecycle and plugin were introduced the entrypoint path started to be always relative, when before it was always absolute.

There's a remaining duplicated validation that will disappear when deprecations are enforced. This whole code will be quite more simple after that.

Fixes #761 .

Copy link
Contributor

@cmatsuoka cmatsuoka left a comment

Choose a reason for hiding this comment

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

Looks good.

@facundobatista facundobatista enabled auto-merge May 16, 2022 18:01
@facundobatista facundobatista merged commit 4b64ec0 into main May 16, 2022
@facundobatista facundobatista deleted the always-validate-pack-entrypoint branch May 16, 2022 18:32
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.

The pack command does not validate the entrypoint unless it's specified
2 participants