-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into allocation_input
- Loading branch information
Showing
18 changed files
with
8,264 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# The cldr artifact has such long paths that it errors on Windows unless long paths are enabled. | ||
# Also the artifact has many files and is over 300 MB, while we only need a single small file. | ||
# This modifies the artifact to remove everything except the file we need. | ||
# Since the artifact is only used on Windows, only strip do it there. | ||
# This needs exactly TimeZones 1.13.0, which is fixed in the Project.toml. | ||
# https://github.com/JuliaTime/TimeZones.jl/issues/373 | ||
|
||
using Artifacts | ||
|
||
if Sys.iswindows() | ||
# Get the artifact directory and the file path we need to keep | ||
hash = Base.SHA1("40b35727ea0aff9a9f28b7454004b68849caf67b") | ||
@assert artifact_exists(hash) | ||
artifact_dir = artifact_path(hash) | ||
keep_file = | ||
normpath(artifact_dir, "cldr-release-43-1/common/supplemental/windowsZones.xml") | ||
@assert isfile(keep_file) | ||
|
||
# Read the file into memory, empty the artifact dir, and write the file back | ||
keep_file_content = read(keep_file) | ||
rm(artifact_dir; recursive = true) | ||
mkpath(dirname(keep_file)) | ||
write(keep_file, keep_file_content) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.