-
Notifications
You must be signed in to change notification settings - Fork 421
feat: Add recipe_yaml configuration option for pixi-build-rattler-build #5364
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
| } | ||
| }; | ||
|
|
||
| let variant_path = source_dir.join(VARIANTS_CONFIG_FILE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what this does? Should we not also add this to the input-globs, to make sure that if the file changes the build is retriggered?
| #[serde(default)] | ||
| pub experimental: Option<bool>, | ||
| #[serde(default)] | ||
| pub recipe_yaml: Option<PathBuf>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should call this recipe-path instead?
| } | ||
| }; | ||
|
|
||
| let variant_path = source_dir.join(VARIANTS_CONFIG_FILE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let variant_path = source_dir.join(VARIANTS_CONFIG_FILE); | |
| // We might have a recipe out of the source_dir given by | |
| // recipe_yaml config option. We check for variants.yaml file | |
| // inside the source_dir for configuring variants. | |
| let variant_path = source_dir.join(VARIANTS_CONFIG_FILE); |
| && variant_path.is_file() | ||
| { | ||
| variant_files.push(variant_path); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| } | |
| input_globs.insert(VARIANTS_CONFIG_FILE); |
This is moved from prefix-dev/pixi-build-backends#532
This PR adds support for configuring the path of the recipe.yaml relative to the source location. This is useful if the recipe has a different name.
@isuruf We moved the build backends into this repository. I manually moved all your changes over verbatim in a new commit, adding you as a co-author. I didnt make any changes.
Fixes #5251
(@lucascolley As you were mentioned in the previous PR)