Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow mirror url to be set in project.json file #32

Open
cyrush opened this issue Oct 16, 2020 · 12 comments
Open

allow mirror url to be set in project.json file #32

cyrush opened this issue Oct 16, 2020 · 12 comments

Comments

@cyrush
Copy link
Member

cyrush commented Oct 16, 2020

it makes life easier to have an option to store it here, vs always pass on the command line

@adrienbernede
Copy link
Member

@cyrush what about creating a mirrors.yaml file in the desired spack_configs/<sys_type> and modify uberenv so that it copies it as well? (Just tested, it works fine.)

Note: with environments this won't be necessary anymore (#18).

@cyrush
Copy link
Member Author

cyrush commented Dec 3, 2020

that does seem like a good option, but I am using the same mirror across configs,
creating lots of mirror.yaml files is harder to manage vs setting in one place.

@white238
Copy link
Member

white238 commented Dec 3, 2020

We really need to move to environments. They solve a lot of these problems.

@adrienbernede
Copy link
Member

adrienbernede commented Dec 3, 2020

We could apply the same logic as for "config.yaml": copy the top level one, and if present override with the one in the spack_config/<arch> dir.

@adrienbernede
Copy link
Member

@white238 agreed. PR ready, and demo in Umpire OK ;)

@cyrush
Copy link
Member Author

cyrush commented Dec 3, 2020

in that we can cascade them (nest scopes depending on platform)?

@adrienbernede
Copy link
Member

in that we can cascade them (nest scopes depending on platform)?

Sorry, not sure what you are asking.

@cyrush
Copy link
Member Author

cyrush commented Dec 3, 2020

My question was for @white238, so to how env's help.
I think env's help b/c we can have overall settings (like mirror settings) and then include another env file with packages and compilers?

@adrienbernede can you point me to the umpire stuff?

Already down a rabbit hole for a spack update, I am planning on doing an uberenv update as well.
I have env files I can test.

@adrienbernede
Copy link
Member

Umpire with "Environment based version of Uberenv":
LLNL/Umpire#481

@white238
Copy link
Member

white238 commented Dec 3, 2020

Just that we keep running into problems that environments solve. I thought you could add mirrors to environment files but i can't seem to find it in their documentation.

@adrienbernede
Copy link
Member

@white238 You just can.

@adrienbernede
Copy link
Member

adrienbernede commented Dec 3, 2020

Syntax is just like if you included the mirrors.yaml file (the same way as for packages.yaml etc.)

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

No branches or pull requests

3 participants