Skip to content

Conversation

@rustdevbtw
Copy link
Contributor

The same as #196

@mxcl
Copy link
Member

mxcl commented Dec 13, 2023

I added a fixture and it appears to fail, I guess we need to wrap the new fetch code.

@rustdevbtw
Copy link
Contributor Author

I added a fixture and it appears to fail, I guess we need to wrap the new fetch code.

It checks and tries to find the first working URL. For invalid URLs, it's supposed to fail.

@rustdevbtw
Copy link
Contributor Author

Maybe cscope one would be a good example:

distributable:
    - url: https://downloads.sourceforge.net/project/cscope/cscope/v{{version.raw}}/cscope-{{version.raw}}.tar.gz
      strip-components: 1
    - url: https://downloads.sourceforge.net/project/cscope/cscope/v{{version.raw}}/cscope-{{version.raw}}.tar.bz2
      strip-components: 1

@rustdevbtw
Copy link
Contributor Author

Okay, I misunderstood the fixture. I've added a catch block to handle exceptions as well

@rustdevbtw
Copy link
Contributor Author

rustdevbtw commented Dec 13, 2023

And thus it passes that test. Sorry for the delay

@mxcl mxcl merged commit 3f1a8d1 into pkgxdev:main Dec 13, 2023
@mxcl
Copy link
Member

mxcl commented Dec 13, 2023

Tremendous, thanks for the work.

mxcl added a commit that referenced this pull request Dec 13, 2023
…214)

* redo of #196
* typo
* Add a fixture for multiple distributables
* fix

---------

Co-authored-by: Max Howell <[email protected]>
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.

2 participants