Skip to content

Commit d87df93

Browse files
committed
Update vendor script to fix using statements
1 parent 183786d commit d87df93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

NDTensors/vendor/run.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@ for (name, version) in deps
1515
cp(joinpath(local_path, "src"), joinpath(p, "src"); force = true)
1616
mkpath(joinpath(p, "ext"))
1717
cp(joinpath(local_path, "ext"), joinpath(p, "ext"); force = true)
18+
19+
for filename in readdir(joinpath(p, "ext"); join = true)
20+
txt = read(filename, String)
21+
open(filename, "w") do f
22+
replacement = "using $name" => "using NDTensors.Vendored.$name"
23+
return write(f, replace(txt, replacement))
24+
end
25+
end
1826
end

0 commit comments

Comments
 (0)