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

only add channel if it is not already added #119

Open
schlichtanders opened this issue Nov 8, 2023 · 0 comments
Open

only add channel if it is not already added #119

schlichtanders opened this issue Nov 8, 2023 · 0 comments
Milestone

Comments

@schlichtanders
Copy link

Currently CondaPkg.add_channel(mychannel) is not idempotent, i.e. one needs to be cautious, not to execute it twice

CondaPkg.jl/src/deps.jl

Lines 248 to 251 in 55a039b

function add!(toml, channel::ChannelSpec)
channels = get!(Vector{Any}, toml, "channels")
push!(channels, channel.name)
end

It would be great if a little check could be added if a similar ChannelSpec already exists

@cjdoris cjdoris added this to the features milestone Nov 9, 2023
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