Skip to content

Commit

Permalink
add subdir field to RegisterParams
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRollen authored and GunnarFarneback committed Apr 25, 2020
1 parent fccde20 commit 1dff408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RegistryTools"
uuid = "d1eb7eb1-105f-429d-abf5-b0f65cb9e2c4"
authors = ["Stefan Karpinski <[email protected]>"]
version = "1.4.0"
version = "1.5.0"

[deps]
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"
Expand Down
6 changes: 4 additions & 2 deletions src/register.jl
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ struct RegisterParams
tree_sha::AbstractString
registry::AbstractString
registry_deps::Vector{<:AbstractString}
subdir::AbstractString
push::Bool
gitconfig::Dict

Expand All @@ -715,17 +716,18 @@ struct RegisterParams
tree_sha::AbstractString;
registry::AbstractString=DEFAULT_REGISTRY_URL,
registry_deps::Vector{<:AbstractString}=[],
subdir::AbstractString="",
push::Bool=false,
gitconfig::Dict=Dict())
new(package_repo, pkg, tree_sha,
registry, registry_deps,
registry, registry_deps, subdir,
push, gitconfig)
end
end

register(regp::RegisterParams) = register(regp.package_repo, regp.pkg, regp.tree_sha;
registry=regp.registry, registry_deps=regp.registry_deps,
push=regp.push, gitconfig=regp.gitconfig)
subdir=regp.subdir, push=regp.push, gitconfig=regp.gitconfig)

"""
find_registered_version(pkg, registry_path)
Expand Down

2 comments on commit 1dff408

@GunnarFarneback
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/13632

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.5.0 -m "<description of version>" 1dff408f07f7bcaca0b2b82eee465ee651c84ade
git push origin v1.5.0

Please sign in to comment.