Skip to content

Commit

Permalink
use full path for local paths when determining package name (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Aug 4, 2018
1 parent 94eec9b commit e5da183
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stdlib/Pkg/src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,12 @@ function parse_package!(ctx, pkg, project_path)
pkg.name = ctx.old_pkg2_clone_name
else
# This is an old style package, get the name from src/PackageName
m = match(reg_pkg, pkg.repo.url)
m === nothing && cmderror("cannot determine package name from URL: $(pkg.repo.url)")
if isdir_windows_workaround(pkg.repo.url)
m = match(reg_pkg, abspath(pkg.repo.url))
else
m = match(reg_pkg, pkg.repo.url)
end
m === nothing && cmderror("cannot determine package name from URL or path: $(pkg.repo.url)")
pkg.name = m.captures[1]
end
reg_uuids = registered_uuids(env, pkg.name)
Expand Down

0 comments on commit e5da183

Please sign in to comment.