Skip to content

Don't add sources to Project.toml in 1.12#4539

Merged
KristofferC merged 3 commits intoJuliaLang:backports-release-1.12from
MasonProtter:mp/dont-add-sources
Nov 28, 2025
Merged

Don't add sources to Project.toml in 1.12#4539
KristofferC merged 3 commits intoJuliaLang:backports-release-1.12from
MasonProtter:mp/dont-add-sources

Conversation

@MasonProtter
Copy link
Copy Markdown
Contributor

@MasonProtter MasonProtter commented Nov 26, 2025

This should fix a problem introduced in #4513 where my cherry-pick picked up a feature change from #4225 and caused it to update the [sources] entry in the Project.toml file when dev-ing a package or adding it from a URL.

I found the offending lines that updated the project during write_end, deleted them, and added a test to make sure the sources don't get added. This test passes for me locally with this change and fails locally without the change.

My hope is that this will let us keep the important part of the backported bugfix fix from #4513.

@KristofferC KristofferC changed the base branch from release-1.12 to backports-release-1.12 November 28, 2025 15:32
@KristofferC KristofferC merged commit 35c5f5b into JuliaLang:backports-release-1.12 Nov 28, 2025
7 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Pkg.jl Nov 28, 2025
IanButterworth added a commit to IanButterworth/Pkg.jl that referenced this pull request Dec 16, 2025


Commit 35c5f5b removed the code that syncs sources from manifest entries
but kept the assertions checking that sources match manifest. This causes
AssertionError when instantiating workspace projects with [sources] entries
(e.g., path = "..") since the assertions check invariants that are no
longer maintained.

Fixes the error:
ERROR: AssertionError: normpath(entry.path) == normpath(path)
IanButterworth added a commit that referenced this pull request Dec 16, 2025
Commit 35c5f5b removed the code that syncs sources from manifest entries
but kept the assertions checking that sources match manifest. This causes
AssertionError when instantiating workspace projects with [sources] entries
(e.g., path = "..") since the assertions check invariants that are no
longer maintained.

Fixes the error:
ERROR: AssertionError: normpath(entry.path) == normpath(path)

(cherry picked from commit 869d8f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants