Skip to content
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 prefix to extension #90

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"

[extensions]
AxisKeysExt = "AxisKeys"
IntervalSetsExt = "IntervalSets"
StaticArraysExt = "StaticArrays"
StructArraysExt = "StructArrays"
AccessorsAxisKeysExt = "AxisKeys"
AccessorsIntervalSetsExt = "IntervalSets"
AccessorsStaticArraysExt = "StaticArrays"
AccessorsStructArraysExt = "StructArrays"

[compat]
AxisKeys = "0.1,0.2" # extension tests only pass for AxisKeys 0.2, but 0.1 compat is required to run tests on Julia 1.3
Expand Down
2 changes: 1 addition & 1 deletion ext/AxisKeysExt.jl → ext/AccessorsAxisKeysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AxisKeysExt
module AccessorsAxisKeysExt
using Accessors
using AxisKeys

Expand Down
2 changes: 1 addition & 1 deletion ext/IntervalSetsExt.jl → ext/AccessorsIntervalSetsExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module IntervalSetsExt
module AccessorsIntervalSetsExt
using Accessors
using IntervalSets

Expand Down
2 changes: 1 addition & 1 deletion ext/StaticArraysExt.jl → ext/AccessorsStaticArraysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StaticArraysExt
module AccessorsStaticArraysExt
isdefined(Base, :get_extension) ? (import StaticArrays) : (import ..StaticArrays)
using Accessors
using Accessors: only # for 1.3-
Expand Down
2 changes: 1 addition & 1 deletion ext/StructArraysExt.jl → ext/AccessorsStructArraysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StructArraysExt
module AccessorsStructArraysExt
using Accessors
using StructArrays

Expand Down
2 changes: 1 addition & 1 deletion src/Accessors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if !isdefined(Base, :get_extension)
end
@static if !isdefined(Base, :get_extension)
function __init__()
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/StaticArraysExt.jl")
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/AccessorsStaticArraysExt.jl")
end
end

Expand Down