Skip to content

Disable module generation by default#35564

Merged
alalazo merged 1 commit intodevelopfrom
disable-modules
Feb 21, 2023
Merged

Disable module generation by default#35564
alalazo merged 1 commit intodevelopfrom
disable-modules

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Feb 18, 2023

  1. It's used by site administrators, so it's niche, the rest of the Spack users does not need this;
  2. If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example on how to get started;
  3. it's too arbitrary to enable tcl, but disable lmod
  4. modules can be generated with spack modules [type] refresh ..., so nothing is lost.

To get the old behavior back, one can simply run

spack config --scope site add modules:default:enable:[tcl]

a) It's used by site administrators, so it's niche
b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started
c) it's too arbitrary to enable tcl, but disable lmod
@spackbot-app spackbot-app bot added core PR affects Spack core functionality defaults labels Feb 18, 2023
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.

Completely approve.

@alalazo alalazo added this to the v0.20.0 milestone Feb 21, 2023
@alalazo alalazo merged commit 5b89171 into develop Feb 21, 2023
@alalazo alalazo deleted the disable-modules branch February 21, 2023 09:00
@haampie
Copy link
Copy Markdown
Member Author

haampie commented Feb 21, 2023

I didn't expect that to get merged right away :p should maybe be announced in the "upcoming high-impact changes", because people who use tcl will be wasting time figuring out why it's not getting generated.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Feb 21, 2023

I didn't expect that to get merged right away :p should maybe be announced in the "upcoming high-impact changes", because people who use tcl will be wasting time figuring out why it's not getting generated.

Done that before merging

alalazo added a commit that referenced this pull request Feb 21, 2023
alalazo added a commit that referenced this pull request Feb 21, 2023
jmcarcell pushed a commit to key4hep/spack that referenced this pull request Apr 13, 2023
a) It's used by site administrators, so it's niche
b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started
c) it's too arbitrary to enable tcl, but disable lmod
jmcarcell pushed a commit to key4hep/spack that referenced this pull request Apr 13, 2023
alalazo pushed a commit to alalazo/spack that referenced this pull request Apr 27, 2023
a) It's used by site administrators, so it's niche
b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started
c) it's too arbitrary to enable tcl, but disable lmod
alalazo added a commit that referenced this pull request May 2, 2023
* Disable module generation by default (#35564)

a) It's used by site administrators, so it's niche
b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started
c) it's too arbitrary to enable tcl, but disable lmod

* Remove leftover from old module file schema

* Warn if module file config is detected and generation is disabled

---------

Co-authored-by: Harmen Stoppels <[email protected]>
joequant pushed a commit to hkphysics/spack that referenced this pull request May 2, 2023
* Disable module generation by default (spack#35564)

a) It's used by site administrators, so it's niche
b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started
c) it's too arbitrary to enable tcl, but disable lmod

* Remove leftover from old module file schema

* Warn if module file config is detected and generation is disabled

---------

Co-authored-by: Harmen Stoppels <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core PR affects Spack core functionality defaults

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants