-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add Artifacts to Pkg #1277
Add Artifacts to Pkg #1277
Conversation
bors try |
tryBuild failed |
95de02f
to
460a112
Compare
cxxstring_abi = nosym(get(entry, "cxxstring_abi", nothing)) | ||
|
||
# Construct the actual Platform object | ||
return P(arch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move the
os_map = Dict(
"windows" => Windows,
"macos" => MacOS,
"freebsd" => FreeBSD,
"linux" => Linux,
)
P = get(os_map, lowercase(entry["os"]), UnknownPlatform)
Stuff to here?
So it is clearer where P
comes from?
FreeBSD => "freebsd", | ||
Linux => "linux", | ||
) | ||
meta["os"] = os_map[typeof(p)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe break the above into very short functions?
name(p::Windows)="windows"
etc
bors r+ |
1277: Add Artifacts to Pkg r=StefanKarpinski a=staticfloat This adds the artifacts subsystem to Pkg, [read this WIP blog post](https://github.com/JuliaLang/www.julialang.org/pull/417/files?short_path=514f74c#diff-514f74c34d50677638b76f65d910ad17) for more details. Closes #841 and #1234. This PR still needs: - [x] A `pkg> gc` hook that looks at the list of projects that we know about, examines which artifacts are bound, and marks all that are unbound. Unbound artifacts that have been continuously unbound for a certain time period (e.g. one month, or something like that) will be automatically reaped. - [x] Greater test coverage (even without seeing the codecov report, I am certain of this), especially as related to the installation of platform-specific binaries. - [x] `Overrides.toml` support for global overrides of artifact locations Co-authored-by: Elliot Saba <staticfloat@gmail.com>
bors r- |
Canceled |
bors try |
bors try |
tryAlready running a review |
bors try |
tryAlready running a review |
Jesus Christ, bors, just run the f*@&ing tests. |
tryTimed out |
Probably was running. But running on 4 Julia versions on AppVeyor takes 2 hours. |
- julia_version: 1 | ||
- julia_version: 1.1 | ||
- julia_version: 1.2 | ||
- julia_version: 1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be enough to run on 1.3 and nightly, we will not ship this version of Pkg with older Julia anyway.
finding artifacts and packages that are thereafter not used by any other projects. This | ||
method will only remove package versions and artifacts that have been continually un-used | ||
for a period of `collect_delay`; which defaults to thirty days. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this docstring be attached to the binding in Pkg.jl
?
Co-Authored-By: Fredrik Ekre <ekrefredrik@gmail.com>
Co-Authored-By: Fredrik Ekre <ekrefredrik@gmail.com>
bors r+ |
This gives greater clarity on the meaning behind `collect_delay`.
db110b5
to
3d5bec2
Compare
Canceled |
I'm sorry |
This adds the artifacts subsystem to Pkg, read this WIP blog post for more details. Closes #841 and #1234.
This PR still needs:
pkg> gc
hook that looks at the list of projects that we know about, examines which artifacts are bound, and marks all that are unbound. Unbound artifacts that have been continuously unbound for a certain time period (e.g. one month, or something like that) will be automatically reaped.Overrides.toml
support for global overrides of artifact locations