Skip to content

Checksum command generates incorrect Github URLs #13474

@erimar77

Description

@erimar77

The checksum command generates URLs that appear to be a combination of the releases and archive URL.

Steps to reproduce the issue

~$ spack checksum star
==> Found 12 versions of star:

  2.7.3a  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.3a.tar.gz
  2.7.2d  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.2d.tar.gz
  2.7.2c  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.2c.tar.gz
  2.7.2b  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.2b.tar.gz
  2.7.2a  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.2a.tar.gz
  2.7.1a  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.1a.tar.gz
  2.7.0f  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.0f.tar.gz
  2.7.0e  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.0e.tar.gz
  2.7.0d  https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.0d.tar.gz
  ...
  2.4.2a  https://github.com/alexdobin/STAR/archive/STAR_2.4.2a.tar.gz

The expected URL would be:

https://github.com/alexdobin/STAR/archive/2.7.3a.tar.gz

Error Message

==> Downloading...
==> Fetching https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.3a.tar.gz
##O=-#     #
curl: (22) The requested URL returned error: 404 Not Found
==> Fetching from https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.3a.tar.gz failed.
==> Something failed on https://github.com/alexdobin/STAR/releases/alexdobin/STAR/archive/2.7.3a.tar.gz, skipping.
    (All fetchers failed for spack-stage-wylazepo)
==> Error: Could not fetch any versions for star

Information on your system

~$ spack --version
0.13.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions