Skip to content

Conversation

@baszalmstra
Copy link
Contributor

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)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
@baszalmstra baszalmstra added enhancement New features pixi-build-rattler-build Issues related to pixi-build-rattler-build. labels Jan 20, 2026
}
};

let variant_path = source_dir.join(VARIANTS_CONFIG_FILE);
Copy link
Contributor Author

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>,
Copy link
Contributor Author

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);
Copy link

Choose a reason for hiding this comment

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

Suggested change
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);
}
Copy link

Choose a reason for hiding this comment

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

Suggested change
}
}
input_globs.insert(VARIANTS_CONFIG_FILE);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features pixi-build-rattler-build Issues related to pixi-build-rattler-build.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

configurable recipe location for pixi-build-rattler-build

2 participants