Commit 8f84f3a
authored
Fix some issues reported on Slack (#243)
* Fix `FileSource` incorrectly trying to replace `srcdir`
Sometimes, a user tries to download a file that is an archive but it
accidentally gets seen as a `FileSource` due to our imperfect archive
detection. Rather than erroring out here with a bad `cp()` invocation,
automatically plop the file into `srcdir`, and allow the build to
continue.
* Check `path` instead of `url` for `archive_extensions`
This allows us to perform a bit of URL cleaning to drop things like
`?raw=true` at the end of URLs from GitHub, for instance. Best to check
the given destination path name, rather than the original URL name.
* Update sources.jl1 parent 4b21cde commit 8f84f3a
3 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments