Skip to content

Fix version extraction path in conda meta.yaml#30

Merged
gb119 merged 2 commits intomainfrom
copilot/fix-meta-yaml-version-setting
Feb 9, 2026
Merged

Fix version extraction path in conda meta.yaml#30
gb119 merged 2 commits intomainfrom
copilot/fix-meta-yaml-version-setting

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

The conda build was failing during version extraction with FileNotFoundError: No such file: '../bad_path/__init__.py'.

Changes

  • conda.recipe/meta.yaml: Changed load_file_regex path from '../bad_path/__init__.py' to 'bad_path/__init__.py'

Technical Context

When source: path: .. copies the repository root to the conda work directory, load_file_regex resolves paths relative to that work directory, not the recipe directory. The file is at work/bad_path/__init__.py, not work/../bad_path/__init__.py.

# Before
{% set version = load_file_regex(load_file='../bad_path/__init__.py', ...) %}

# After
{% set version = load_file_regex(load_file='bad_path/__init__.py', ...) %}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Changed load_file_regex path from '../bad_path/__init__.py' to 'bad_path/__init__.py' to correctly locate the version file during conda build process. The source path '..' copies the repo root to the work directory, so the file is at 'bad_path/__init__.py' relative to that.

Co-authored-by: gb119 <[email protected]>
Copilot AI changed the title [WIP] Fix version setting in meta.yaml during conda build Fix version extraction path in conda meta.yaml Feb 9, 2026
Copilot AI requested a review from gb119 February 9, 2026 15:03
@gb119 gb119 marked this pull request as ready for review February 9, 2026 16:39
@gb119 gb119 merged commit 5691982 into main Feb 9, 2026
1 check passed
@gb119 gb119 deleted the copilot/fix-meta-yaml-version-setting branch February 9, 2026 16:40
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.

2 participants