Skip to content

Conversation

@tdejager
Copy link
Contributor

This is the test for the pixi PR: prefix-dev/pixi#4839

The .env.ci file needs removal.

AI Disclosure

  • Test was created by codex and commented by myself.

Comment on lines 123 to 138
# Create an out-of-tree directory
out_of_tree_dir = simple_workspace.workspace_dir.joinpath("out_of_tree_source")
out_of_tree_dir.mkdir()
# Write out a file we will modify later on
external_file = out_of_tree_dir.joinpath("external.txt")
external_file.write_text("initial content", encoding="utf-8")

# Change the build section
build_section = simple_workspace.package_manifest["package"]["build"]
build_section["source"] = {"path": "../out_of_tree_source"}
configuration = build_section.setdefault("configuration", {})
# Add external glob for detection
configuration["extra-input-globs"] = ["external.txt"]
simple_workspace.recipe["source"] = {"path": "../out_of_tree_source"}

simple_workspace.write_files()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please ask codex to make actual files out of them? That makes it a bit easier to read and debug in my experience

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.

3 participants