Skip to content

[release-1.12] Add test for workspace sources pointing to parent package #4569

Closed
IanButterworth wants to merge 1 commit intoJuliaLang:release-1.12from
IanButterworth:ib/test_1.12_fix
Closed

[release-1.12] Add test for workspace sources pointing to parent package #4569
IanButterworth wants to merge 1 commit intoJuliaLang:release-1.12from
IanButterworth:ib/test_1.12_fix

Conversation

@IanButterworth
Copy link
Copy Markdown
Member

@IanButterworth IanButterworth commented Dec 16, 2025

Testing the test in #4568 without the fix

Confirmed:

workspace sources pointing to parent package: Error During Test at /Users/runner/work/Pkg.jl/Pkg.jl/test/workspaces.jl:191
  Got exception outside of a @test
  AssertionError: normpath(entry.path) == normpath(path)
  Stacktrace:
    [1] write_env(env::Pkg.Types.EnvCache; update_undo::Bool, skip_writing_project::Bool)
      @ Pkg.Types ~/work/Pkg.jl/Pkg.jl/src/Types.jl:1292
    [2] write_env
      @ ~/work/Pkg.jl/Pkg.jl/src/Types.jl:1283 [inlined]
    [3] up(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, level::Pkg.Types.UpgradeLevel; skip_writing_project::Bool, preserve::Nothing)
      @ Pkg.Operations ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1986
    [4] up
      @ ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1957 [inlined]

Tests that workspace child projects with [sources] entries pointing to the
parent package (e.g., path = "..") can be instantiated without errors.
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.

1 participant