JuliaRegistries / JuliaRegistries/CompatHelper.jl

Ignore subdir compat when `[workspace]` is used

Open
#532 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
147
Forks
43
Avg merge
21h 27m
Merged PRs (30d)
2

Description

Julia 1.12 introduced the [`workspace` feature](https://docs.julialang.org/en/v1/manual/code-loading/#workspaces).
It would be nice if CompatHelper could consider that and only suggest compat entries for subdirectories that have not already been specified in the "super" Project.toml file.

For instance, consider a package `MyPkg` with Project.toml:

```toml
name = "MyPkg"
[deps]
StatsBase ="..."

[compat]
StatsBase = "..."

[workspace]
projects = ["test"]
```

and the Project.toml file in `test`
```toml
[deps]
MyPkg = "..."
StatsBase = "..."
TestDep = "..."
```

Now notice that the first Project.toml file specifies compat bounds on `StatsBase`. Thus, we don't need to add another compat entry to the `test` Project.toml. However, we may be interested in compat bumps for `TestDep`, so we'd like to add `test` to the `subdirs` of `CompatHelper.main`. However, this workflow doesn't seem well supported yet.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.