Skip to content

Commit 24d3f37

Browse files
committed
refactor: prefix extensions with package name
- this will ensure extension names are unique - whenever there is another package with same ext name, building sysimage fails - ex: ChangeOfVariables has its own ChainRulesCoreExt.jl
1 parent 8d429cf commit 24d3f37

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ChangesOfVariables = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
1717
InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112"
1818

1919
[extensions]
20-
ChainRulesCoreExt = "ChainRulesCore"
21-
ChangesOfVariablesExt = "ChangesOfVariables"
22-
InverseFunctionsExt = "InverseFunctions"
20+
LogExpFunctionsChainRulesCoreExt = "ChainRulesCore"
21+
LogExpFunctionsChangesOfVariablesExt = "ChangesOfVariables"
22+
LogExpFunctionsInverseFunctionsExt = "InverseFunctions"
2323

2424
[compat]
2525
ChainRulesCore = "1"

ext/ChainRulesCoreExt.jl renamed to ext/LogExpFunctionsChainRulesCoreExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ChainRulesCoreExt
1+
module LogExpFunctionsChainRulesCoreExt
22

33
using LogExpFunctions
44
import ChainRulesCore

ext/ChangesOfVariablesExt.jl renamed to ext/LogExpFunctionsChangesOfVariablesExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ChangesOfVariablesExt
1+
module LogExpFunctionsChangesOfVariablesExt
22

33
using LogExpFunctions
44
import ChangesOfVariables

ext/InverseFunctionsExt.jl renamed to ext/LogExpFunctionsInverseFunctionsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module InverseFunctionsExt
1+
module LogExpFunctionsInverseFunctionsExt
22

33
using LogExpFunctions
44
import InverseFunctions

src/LogExpFunctions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ include("basicfuns.jl")
1414
include("logsumexp.jl")
1515

1616
if !isdefined(Base, :get_extension)
17-
include("../ext/ChainRulesCoreExt.jl")
18-
include("../ext/ChangesOfVariablesExt.jl")
19-
include("../ext/InverseFunctionsExt.jl")
17+
include("../ext/LogExpFunctionsChainRulesCoreExt.jl")
18+
include("../ext/LogExpFunctionsChangesOfVariablesExt.jl")
19+
include("../ext/LogExpFunctionsInverseFunctionsExt.jl")
2020
end
2121

2222
end # module

0 commit comments

Comments
 (0)