Skip to content

config: fix class hierarchy#45044

Merged
haampie merged 5 commits intodevelopfrom
hs/fix/config-class-hierarchy
Jul 5, 2024
Merged

config: fix class hierarchy#45044
haampie merged 5 commits intodevelopfrom
hs/fix/config-class-hierarchy

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Jul 4, 2024

  1. Avoid that self.path is of type Optional[str]: file based config extends non-file based config now.
  2. Simplify non-writable config with a property.

The idea is to be able to construct EnvironmentManifest(path) and mark every associated config scope as non-writable, which is useful for a feature spack -C <env> <command>.

@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality environments tests General test capability(ies) labels Jul 4, 2024
1. Avoid that `self.path` is of type `Optional[str]`
2. Simplify immutable config with a property.
@haampie haampie force-pushed the hs/fix/config-class-hierarchy branch from 7565bca to 7ce83c1 Compare July 4, 2024 09:55
@haampie haampie force-pushed the hs/fix/config-class-hierarchy branch from d185846 to 6405b04 Compare July 4, 2024 10:05
alalazo
alalazo previously approved these changes Jul 5, 2024
Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

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

Basically LGTM. A few minor suggestions on having keyword only args for at least added arguments, if you feel like it.

@alalazo alalazo self-assigned this Jul 5, 2024
@alalazo alalazo enabled auto-merge (squash) July 5, 2024 10:19
@haampie haampie disabled auto-merge July 5, 2024 10:41
@haampie haampie merged commit 1d8bdcf into develop Jul 5, 2024
@haampie haampie deleted the hs/fix/config-class-hierarchy branch July 5, 2024 10:41
hariharan-devarajan pushed a commit to hariharan-devarajan/spack that referenced this pull request Jul 10, 2024
1. Avoid that `self.path` is of type `Optional[str]`
2. Simplify immutable config with a property.
psakievich added a commit to sandialabs/spack-manager that referenced this pull request Jul 16, 2024
Address changes to spack environments and scopes
See:
- spack/spack#45044
- spack/spack#45135
psakievich added a commit to sandialabs/spack-manager that referenced this pull request Jul 16, 2024
Address changes to spack environments and scopes
See:
- spack/spack#45044
- spack/spack#45135
psakievich added a commit to sandialabs/spack-manager that referenced this pull request Jul 16, 2024
* Fixes for changes in core spack

Address changes to spack environments and scopes
See:
- spack/spack#45044
- spack/spack#45135

* Fixes

* Style ci

* Style
FrederickDeny pushed a commit to FrederickDeny/spack that referenced this pull request Aug 26, 2024
1. Avoid that `self.path` is of type `Optional[str]`
2. Simplify immutable config with a property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands compilers core PR affects Spack core functionality environments tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants