Skip to content

all_urls: add urls[0] for versions#16435

Merged
alalazo merged 1 commit intospack:developfrom
ax3l:topic-mirrorFetchVersions
May 8, 2020
Merged

all_urls: add urls[0] for versions#16435
alalazo merged 1 commit intospack:developfrom
ax3l:topic-mirrorFetchVersions

Conversation

@ax3l
Copy link
Copy Markdown
Member

@ax3l ax3l commented May 2, 2020

This adds the url alternative urls to package.all_urls. With this addition, one can find again new versions with spack versions <package> for packages that are populated with from mixin mirror urls.

Example: util-macros from x.org mixin.

This adds the `url` alternative `urls` to `package.all_urls`. With
this addition, one can find again new versions with
`spack versions <package>` for packages that are populated with
from mixin mirror `urls`.

Example: `util-macros` from x.org mixin.

# fetch from first entry in urls to save time
if hasattr(self, 'urls') and self.urls:
urls.append(self.urls[0])
Copy link
Copy Markdown
Member Author

@ax3l ax3l May 2, 2020

Choose a reason for hiding this comment

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

I wasn't sure if I should add all urls.
Pro:

  • more robust
  • works
  • probably the right thing to do / least surprising

Con:

  • can take a lot of extra time to find usually the exact same versions
  • version exploration is not a super-critical operation yet if failing

@ax3l ax3l added versions bug Something isn't working labels May 2, 2020
@alalazo alalazo merged commit f5844d3 into spack:develop May 8, 2020
@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 8, 2020

Thanks @ax3l !

@ax3l ax3l deleted the topic-mirrorFetchVersions branch May 8, 2020 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fetching versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants