-
Notifications
You must be signed in to change notification settings - Fork 40
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
New implementation based on julia-0.5 infrastructure #2
Conversation
Now that there are tests, you also might want to consider visiting travis-ci.org and turning on Travis testing. |
@timholy thanks a lot for excellent job and for detailed merging instructions! |
@timholy thanks again. I merged your changes. julia> Pkg.tag("OffsetArrays", :minor)
ERROR: Pkg.tag(pkg, [ver, [commit]]) has been moved to the package PkgDev.jl.
Run Pkg.add("PkgDev") to install PkgDev on Julia v0.5-
in tag(::String, ::Symbol) at ./pkg/pkg.jl:263
in eval(::Module, ::Any) at ./boot.jl:231
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46 despite the fact I followed the above recommendations and made julia> Pkg.add("PkgDev")
INFO: Cloning cache of PkgDev from https://github.com/JuliaLang/PkgDev.jl.git
INFO: Installing PkgDev v0.1.0
INFO: Package database updated the error message for The actual error message:
looking into it. |
Ok, looks like figured out what went wrong. |
Sorry I missed this conversation (buried below some other emails), but glad you figured it out! |
Sure no problem, and thanks again for your contribution! I've already tagged with v0.1.3 the old pre-0.5 code. I put it to julia> PkgDev.tag("OffsetArrays", v"0.2.0");
INFO: Tagging OffsetArrays v0.2.0
INFO: Committing METADATA for OffsetArrays but wasn't able to publish the changes:
|
Yep, that's perhaps the single biggest release blocker for julia-0.5. |
I see, I filed an issue for |
JuliaLang/julia#16260 added support for arrays with unconventional indexing. This essentially rewrites this package based on that infrastructure. It seems to be pretty compatible with your implementation; of the examples, only "main_sub" fails, and as far as I can tell this implementation doesn't actually use this package (it uses tricks with
SubArray
, but on julia-0.5 those tricks won't work anyway because bounds-checking has been introduced intoSubArray
s). You could presumably rewrite that example?I noticed that despite the fact that this is a registered package, there is no tagged version. That means users can't
Pkg.add("OffsetArrays")
. Given the requirement for julia-0.5 here, my recommendation is the following:v0.1.0
(Pkg.tag("OffsetArrays", :minor); Pkg.publish()
. You should do that even if you have no intention of merging this.pre-arraymageddon
or something. This is for allowing you to update the old code in case you discover bugs for prior Julia versions.v"0.2.0"
) for the new implementation.Users not running julia-0.5 will get the old one, and the fact that there's a minor version bump means that you can continue to release new versions for older versions of Julia, basing the changes off the
pre-arraymageddon
branch.