Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformEngines: use Tar.jl for tarball operations #2147

Merged
merged 1 commit into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Tar = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[extras]
Expand Down
1 change: 1 addition & 0 deletions src/Artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ function download_artifact(
if Sys.iswindows()
# The destination directory we're hoping to fill:
dest_dir = artifact_path(tree_hash; honor_overrides=false)
mkpath(dest_dir)

# On Windows, we have some issues around stat() and chmod() that make properly
# determining the git tree hash problematic; for this reason, we use the "unsafe"
Expand Down
2 changes: 1 addition & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ function install_archive(
tmp_objects = String[]
url_success = false
for (url, top) in urls
path = tempname() * randstring(6) * ".tar.gz"
path = tempname() * randstring(6)
push!(tmp_objects, path) # for cleanup
url_success = true
try
Expand Down
Loading