Skip to content

bugfix: mirror path works for unknown versions#13626

Merged
tgamblin merged 2 commits intodevelopfrom
bugfix/mirror-path-fails-for-nonexistant-version
Nov 8, 2019
Merged

bugfix: mirror path works for unknown versions#13626
tgamblin merged 2 commits intodevelopfrom
bugfix/mirror-path-fails-for-nonexistant-version

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented Nov 7, 2019

Fixes a second error mentioned by @zzotta in #13474 (comment).

mirror_archive_path was failing to account for the case where the fetched version isn't known to Spack.

  • don't require the fetched version to be in Package.versions
  • add a regression test

`mirror_archive_path` was failing to acccount for the case where the
fetched versions isn't known to Spack.

- [x] don't require the fetched version to be in `Package.versions`
@tgamblin
Copy link
Copy Markdown
Member Author

tgamblin commented Nov 7, 2019

@zzotta: does this fix your fetch command? It does for me:

$ spack fetch --no-checksum [email protected]
==> Warning: [email protected] cannot build optimized binaries for "skylake". Using best target possible: "x86_64"
==> Fetching file:///Users/gamblin2/foop/libbson/libbson-1.9.5.tar.gz
curl: (37) Couldn't open file /Users/gamblin2/foop/libbson/libbson-1.9.5.tar.gz
==> Fetching from file:///Users/gamblin2/foop/libbson/libbson-1.9.5.tar.gz failed.
==> Fetching https://github.com/mongodb/libbson/releases/download/1.9.5/libbson-1.9.5.tar.gz
######################################################################## 100.0%

@zzotta
Copy link
Copy Markdown
Contributor

zzotta commented Nov 7, 2019

@zzotta: does this fix your fetch command?

@tgamblin: Yes, it does

@scheibelp
Copy link
Copy Markdown
Member

@tgamblin I agree with the changes you made, so if you agree with the test I added then this is good to go

@scheibelp scheibelp force-pushed the bugfix/mirror-path-fails-for-nonexistant-version branch from 1be275d to cb15be8 Compare November 7, 2019 20:54
@tgamblin
Copy link
Copy Markdown
Member Author

tgamblin commented Nov 8, 2019

@scheibelp: this looks good to me!

@junghans: FYI, I think this fixes the issue we saw in the tutorial Tuesday.

@tgamblin tgamblin merged commit c9c2675 into develop Nov 8, 2019
@tgamblin tgamblin changed the title bugfix: mirror path works for nonexisting versions bugfix: mirror path works for unknown versions Nov 8, 2019
@junghans junghans deleted the bugfix/mirror-path-fails-for-nonexistant-version branch November 8, 2019 00:30
tgamblin added a commit that referenced this pull request Dec 2, 2019
`mirror_archive_path` was failing to account for the case where the fetched version isn't known to Spack.

- [x] don't require the fetched version to be in `Package.versions`
- [x] add regression test for mirror paths when package does not have a version
tgamblin added a commit that referenced this pull request Dec 5, 2019
v0.13.2

This release contains major performance improvements for Spack environments, as well as some bugfixes and minor changes.

* allow missing modules if they are blacklisted (#13540)
* speed up environment activation (#13557)
* mirror path works for unknown versions (#13626)
* environments: don't try to modify run-env if a spec is not installed (#13589)
* use semicolons instead of newlines in module/python command (#13904)
* verify.py: os.path.exists exception handling (#13656)
* Document use of the maintainers field (#13479)
* bugfix with config caching (#13755)
* hwloc: added 'master' version pointing at the HEAD of the master branch (#13734)
* config option to allow gpg warning suppression (#13744)
* fix for relative symlinks when relocating binary packages (#13727)
* allow binary relocation of strings in relative binaries (#13724)
tgamblin added a commit that referenced this pull request Dec 5, 2019
v0.13.2

This release contains major performance improvements for Spack environments, as well as some bugfixes and minor changes.

* allow missing modules if they are blacklisted (#13540)
* speed up environment activation (#13557)
* mirror path works for unknown versions (#13626)
* environments: don't try to modify run-env if a spec is not installed (#13589)
* use semicolons instead of newlines in module/python command (#13904)
* verify.py: os.path.exists exception handling (#13656)
* Document use of the maintainers field (#13479)
* bugfix with config caching (#13755)
* hwloc: added 'master' version pointing at the HEAD of the master branch (#13734)
* config option to allow gpg warning suppression (#13744)
* fix for relative symlinks when relocating binary packages (#13727)
* allow binary relocation of strings in relative binaries (#13724)
samiilvonen pushed a commit to CSCfi/spack that referenced this pull request Jan 10, 2020
`mirror_archive_path` was failing to account for the case where the fetched version isn't known to Spack.

- [x] don't require the fetched version to be in `Package.versions`
- [x] add regression test for mirror paths when package does not have a version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants