Skip to content

Commit 4d263be

Browse files
authored
[Wizard] Automatically replace version number in URLs with $(version) (#1148)
1 parent bf63350 commit 4d263be

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Manifest.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
2828

2929
[[BinaryBuilderBase]]
3030
deps = ["CodecZlib", "Downloads", "InteractiveUtils", "JSON", "LibGit2", "Libdl", "Logging", "OutputCollectors", "Pkg", "Random", "SHA", "Scratch", "SimpleBufferStream", "TOML", "Tar", "UUIDs", "p7zip_jll", "pigz_jll"]
31-
git-tree-sha1 = "1d3e476094c1da44ffae26c4e9714065b6ce8744"
31+
git-tree-sha1 = "a7d9c9f209f47a86622ec2bc019359b41db33d0b"
3232
repo-rev = "master"
3333
repo-url = "https://github.com/JuliaPackaging/BinaryBuilderBase.jl.git"
3434
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
35-
version = "1.2.1"
35+
version = "1.3.0"
3636

3737
[[CodecZlib]]
3838
deps = ["TranscodingStreams", "Zlib_jll"]
@@ -85,9 +85,9 @@ version = "0.1.6"
8585

8686
[[FileIO]]
8787
deps = ["Pkg", "Requires", "UUIDs"]
88-
git-tree-sha1 = "2db648b6712831ecb333eae76dbfd1c156ca13bb"
88+
git-tree-sha1 = "67551df041955cc6ee2ed098718c8fcd7fc7aebe"
8989
uuid = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
90-
version = "1.11.2"
90+
version = "1.12.0"
9191

9292
[[FileWatching]]
9393
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
@@ -246,9 +246,9 @@ uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
246246
version = "1.4.1"
247247

248248
[[OutputCollectors]]
249-
git-tree-sha1 = "d86c19b7fa8ad6a4dc8ec2c726642cc6291b2941"
249+
git-tree-sha1 = "5d3f2b3b2e2a9d7d6f1774c78e94530ac7f360cc"
250250
uuid = "6c11c7d4-943b-4e2b-80de-f2cfc2930a8c"
251-
version = "0.1.0"
251+
version = "0.1.1"
252252

253253
[[Parsers]]
254254
deps = ["Dates"]

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BinaryBuilder"
22
uuid = "12aac903-9f7c-5d81-afc2-d9565ea332ae"
33
authors = ["Elliot Saba <staticfloat@gmail.com>"]
4-
version = "0.4.6"
4+
version = "0.4.7"
55

66
[deps]
77
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"

src/wizard/deploy.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ function print_build_tarballs(io::IO, state::WizardState)
22
urlfiles = zip(state.source_urls, state.source_files)
33

44
sources_strings = map(urlfiles) do x
5-
url_string = repr(x[1])
5+
# Try to be smart and automatically replace version number with `$(version)`.
6+
url_string = replace(repr(x[1]), string(state.version) => "\$(version)")
67
if endswith(x[1], ".git")
78
"GitSource($(url_string), $(repr(x[2].hash)))"
89
elseif any(endswith(x[1], ext) for ext in BinaryBuilderBase.archive_extensions)

0 commit comments

Comments
 (0)