Skip to content

Fix non path-based package repositories in environments#51055

Merged
becker33 merged 3 commits intospack:developfrom
tehrengruber:fix_env_non_str_repo
Jul 31, 2025
Merged

Fix non path-based package repositories in environments#51055
becker33 merged 3 commits intospack:developfrom
tehrengruber:fix_env_non_str_repo

Conversation

@tehrengruber
Copy link
Copy Markdown
Contributor

@tehrengruber tehrengruber commented Jul 28, 2025

fixes #51054

Fixes environments with non path-based repositories, e.g. something like

spack:
  repos:
    builtin:
      branch: develop

This is a bug introduced in #49084 and reported in #51054.

Signed-off-by: Till Ehrengruber <[email protected]>
@tehrengruber tehrengruber force-pushed the fix_env_non_str_repo branch from ff0dcce to 02218d0 Compare July 28, 2025 12:38
@tehrengruber
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 28, 2025

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 28, 2025

I was able to run spack style --fix for you!

spack style --fix
==> Running style checks on spack
  selected: import, isort, black, flake8, mypy
==> Modified files
  lib/spack/spack/environment/environment.py
  lib/spack/spack/test/cmd/env.py
==> Running import checks
  import checks were clean
==> Running isort checks
  isort checks were clean
==> Running black checks
reformatted lib/spack/spack/test/cmd/env.py
All done! ✨ 🍰 ✨
1 file reformatted, 1 file left unchanged.
  black checks were clean
==> Running flake8 checks
lib/spack/spack/test/cmd/env.py:4601: [F541] f-string is missing placeholders
lib/spack/spack/test/cmd/env.py:4608: [F841] local variable 'test' is assigned to but never used
  flake8 found errors
==> Running mypy checks
Success: no issues found in 614 source files
  mypy checks were clean
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I've updated the branch with style fixes.

@tehrengruber tehrengruber force-pushed the fix_env_non_str_repo branch from f5f44c3 to 3dbb8aa Compare July 28, 2025 12:45
Signed-off-by: Till Ehrengruber <[email protected]>
@alalazo alalazo added bugfix Something wasn't working, here's a fix v1.0.1 PRs to backport for v1.0.1 labels Jul 30, 2025
@becker33 becker33 merged commit eb54366 into spack:develop Jul 31, 2025
32 checks passed
haampie pushed a commit that referenced this pull request Jul 31, 2025
* Fix #51054

Signed-off-by: Till Ehrengruber <[email protected]>

* [@spackbot] updating style on behalf of tehrengruber

Signed-off-by: Till Ehrengruber <[email protected]>

---------

Signed-off-by: Till Ehrengruber <[email protected]>
Co-authored-by: tehrengruber <[email protected]>
Signed-off-by: Harmen Stoppels <[email protected]>
@haampie haampie mentioned this pull request Jul 31, 2025
29 tasks
alecbcs pushed a commit that referenced this pull request Aug 12, 2025
* Fix #51054

Signed-off-by: Till Ehrengruber <[email protected]>

* [@spackbot] updating style on behalf of tehrengruber

Signed-off-by: Till Ehrengruber <[email protected]>

---------

Signed-off-by: Till Ehrengruber <[email protected]>
Co-authored-by: tehrengruber <[email protected]>
Signed-off-by: Harmen Stoppels <[email protected]>
alstar555 pushed a commit to alstar555/spack that referenced this pull request Aug 27, 2025
* Fix spack#51054

Signed-off-by: Till Ehrengruber <[email protected]>

* [@spackbot] updating style on behalf of tehrengruber

Signed-off-by: Till Ehrengruber <[email protected]>

---------

Signed-off-by: Till Ehrengruber <[email protected]>
Co-authored-by: tehrengruber <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something wasn't working, here's a fix v1.0.1 PRs to backport for v1.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non path-based package repositories in environments broken

3 participants