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

Only try to partition Byggfile.yml actions if there are any #87

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

rikardg
Copy link
Owner

@rikardg rikardg commented Nov 7, 2023

Building the transform action from examples/trivial would fail with a "Could not find action" error, but building the same action as the default action would work.

This was due to the partitioning code trying to partition the empty list of actions from Byggfile.yml when there was an action given on the command line, and this would fail.

The default action case would succeed because
examples/trivial/Byggfile.yml has a default action declared.

Fix this in the partitioning code so that Byggfile.py will be evaluated.

Also add a test case to noxfile.py.

Building the transform action from examples/trivial would fail with a
"Could not find action" error, but building the same action as the
default action would work.

This was due to the partitioning code trying to partition the empty list
of actions from Byggfile.yml when there was an action given on the
command line, and this would fail.

The default action case would succeed because
examples/trivial/Byggfile.yml has a default action declared.

Fix this in the partitioning code so that Byggfile.py will be evaluated.

Also add a test case to noxfile.py.
@rikardg rikardg merged commit 6394cd1 into master Nov 7, 2023
15 checks passed
@rikardg rikardg deleted the trivial_no_explicit_actions branch November 7, 2023 00:17
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.

1 participant