Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't dev package with url in [sources] #4073

Open
fredrikekre opened this issue Nov 4, 2024 · 1 comment
Open

Can't dev package with url in [sources] #4073

fredrikekre opened this issue Nov 4, 2024 · 1 comment

Comments

@fredrikekre
Copy link
Member

Here Foo is a package with a url set under [sources]:

julia> Pkg.develop(path = "../Foo/")
ERROR: `path` and `url` are conflicting specifications
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types ~/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68
 [2] get_path_repo
   @ ~/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/project.jl:17 [inlined]
 [3] update_source_if_set(project::Pkg.Types.Project, pkg::Pkg.Types.PackageSpec)
   @ Pkg.API ~/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/API.jl:198
@clarkevans
Copy link
Member

clarkevans commented Nov 21, 2024

This is important to me as well. Currently, we use Pkg.develop(url="[email protected]:TuftsCTSI/TRDW.jl.git") for our development setup, where we also added TRDW = {url = "https://github.com/TuftsCTSI/TRDW.jl", rev = "main"} to Project.toml -- is this correct?

Perhaps what would be ideal is Pkg.develop("TRDW") and it'd use the Project.toml sources section to know where to find it.

Is there a workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants