Skip to content

Commit 6e7ef20

Browse files
committed
back out of auto adding to sources
1 parent 878acf5 commit 6e7ef20

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Diff for: CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Pkg v1.12 Release Notes
2+
=======================
23

34
- It is now possible to specify "sources" for packages in a `[sources]` section in Project.toml.
4-
This can be used to add non-registered normal or test dependencies. Packages will also automatically be added to `[sources]` when they are added by url or devved.
5+
This can be used to add non-registered normal or test dependencies.
56

67
Pkg v1.11 Release Notes
78
=======================

Diff for: src/API.jl

-4
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,12 @@ function update_source_if_set(project, pkg)
189189
# This should probably not modify the dicts directly...
190190
if pkg.repo.source !== nothing
191191
source["url"] = pkg.repo.source
192-
delete!(source, "path")
193192
end
194193
if pkg.repo.rev !== nothing
195194
source["rev"] = pkg.repo.rev
196-
delete!(source, "path")
197195
end
198196
if pkg.path !== nothing
199197
source["path"] = pkg.path
200-
delete!(source, "url")
201-
delete!(source, "rev")
202198
end
203199
path, repo = get_path_repo(project, pkg.name)
204200
if path !== nothing

Diff for: src/Types.jl

-7
Original file line numberDiff line numberDiff line change
@@ -1119,13 +1119,6 @@ function write_env(env::EnvCache; update_undo=true,
11191119
@assert entry.repo.subdir == repo.subdir
11201120
end
11211121
end
1122-
if entry.path !== nothing
1123-
env.project.sources[pkg] = Dict("path" => entry.path)
1124-
elseif entry.repo != GitRepo()
1125-
d = Dict("url" => entry.repo.source)
1126-
entry.repo.rev !== nothing && (d["rev"] = entry.repo.rev)
1127-
env.project.sources[pkg] = d
1128-
end
11291122
end
11301123
if (env.project != env.original_project) && (!skip_writing_project)
11311124
write_project(env)

0 commit comments

Comments
 (0)