Skip to content

Commit 2082d9e

Browse files
authored
Strip URL parameters from names on disk (#1204)
We don't really want to create things called `file.zip?raw=true`, especially as that may screw up our Archive detection later on.
1 parent 5dbdef4 commit 2082d9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wizard/obtain_source.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ function download_source(state::WizardState)
109109
close(repo)
110110
else
111111
# Download the source tarball
112-
source_path = joinpath(state.workspace, basename(url))
112+
basename_without_urlparams(url) = first(split(basename(url), "?"))
113+
source_path = joinpath(state.workspace, basename_without_urlparams(url))
113114

114115
if isfile(source_path)
115116
# Try to match everything up to but not including ".tar.*" to strip multiple file extensions

0 commit comments

Comments
 (0)