Skip to content

Commit

Permalink
fix package build: add Downloads package as dep
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Oct 19, 2024
1 parent cad6bc5 commit 1b5b2de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
version:
- '1.6'
- '1.7'
- '1.10'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
os:
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "0.3.3-dev"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

Expand Down
4 changes: 3 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import Downloads

const PREFIX = joinpath(@__DIR__, "usr")
const DOWNLOADS = joinpath(PREFIX, "downloads")
const DEPS_FILE = joinpath(@__DIR__, "deps.jl")
Expand Down Expand Up @@ -53,7 +55,7 @@ function download_source_files(; verbose::Bool=false)

if !isfile(ODPI_SOURCE_LOCAL_FILEPATH)
verbose && println("Downloading $ODPI_SOURCE_URL...")
download(ODPI_SOURCE_URL, ODPI_SOURCE_LOCAL_FILEPATH)
Downloads.download(ODPI_SOURCE_URL, ODPI_SOURCE_LOCAL_FILEPATH)
end

untar_source_files(verbose=verbose)
Expand Down

0 comments on commit 1b5b2de

Please sign in to comment.