You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Path from [sources] takes precedence - clear tree_hash and repo from manifest
256
+
pkg.tree_hash =nothing
257
+
pkg.repo =GitRepo() # Clear any repo info
255
258
pkg.path = path
256
259
end
257
260
if repo.source !==nothing
261
+
# Repo from [sources] takes precedence - clear path from manifest
262
+
pkg.path =nothing
258
263
pkg.repo.source = repo.source
259
264
end
260
265
if repo.rev !==nothing
@@ -2224,7 +2229,7 @@ function up_load_versions!(ctx::Context, pkg::PackageSpec, entry::PackageEntry,
2224
2229
if pkg.path ===nothing
2225
2230
pkg.tree_hash = entry.tree_hash
2226
2231
end
2227
-
elseif entry.repo.source !==nothing|| source_repo.source !==nothing# repo packages have a version but are treated specially
2232
+
elseifsource_path ===nothing&& pkg.path ===nothing&& (entry.repo.source !==nothing|| source_repo.source !==nothing)# repo packages have a version but are treated specially
0 commit comments