Skip to content

fix issue where spack.util.url.join() failed to correctly handle absolute path components#13488

Merged
tgamblin merged 4 commits intospack:developfrom
opadron:fix/13474-bad-checksum-urls
Nov 1, 2019
Merged

fix issue where spack.util.url.join() failed to correctly handle absolute path components#13488
tgamblin merged 4 commits intospack:developfrom
opadron:fix/13474-bad-checksum-urls

Conversation

@opadron
Copy link
Copy Markdown
Member

@opadron opadron commented Oct 29, 2019

Needed to resolve #13474.
Other fixes might be necessary.

@opadron
Copy link
Copy Markdown
Member Author

opadron commented Oct 29, 2019

CI looks good. I am working on adding tests.

@tgamblin
Copy link
Copy Markdown
Member

@erimar77: does this fix #13474 for you?

@tgamblin tgamblin self-requested a review October 29, 2019 20:52
@erimar77
Copy link
Copy Markdown
Contributor

Yes, I've confirmed with a few different packages using fetch, create, and checksum per a chat with @opadron

@opadron opadron force-pushed the fix/13474-bad-checksum-urls branch from 7551364 to f47e7b8 Compare October 30, 2019 14:52
Copy link
Copy Markdown
Member

@tgamblin tgamblin left a comment

Choose a reason for hiding this comment

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

Ok this is much better with tests. Thanks!

I still think this code can be simplified quite a bit (or perhaps we could think about how we handle the netloc/path relationship for s3), but that can happen in some future PR.

@tgamblin tgamblin merged commit 0f81656 into spack:develop Nov 1, 2019
tgamblin pushed a commit that referenced this pull request Nov 1, 2019
…13488)

* fix issue where spack.util.url.join() failed to correctly handle absolute path components
* add url util tests
@opadron opadron deleted the fix/13474-bad-checksum-urls branch November 8, 2019 16:42
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

Successfully merging this pull request may close these issues.

Checksum command generates incorrect Github URLs

4 participants