JuliaLang / JuliaLang/juliaup

Feature request: ability to add custom `InstalledChannels` without editing the `~/.julia/juliaup/juliaup.json` file

Open
#358 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Rust
Stars
1.3k
Forks
116
Avg merge
12h 34m
Merged PRs (30d)
19

Description

I'd like to be able to add custom `InstalledChannels`. However, I don't want to edit the `~/.julia/juliaup/juliaup.json` file. Instead, my preferred interface would be to create a new file called `~/.julia/juliaup/channels.d/dilum_custom_channels.json`. And then `juliaup` will automatically detect any `*.json` files in the `~/.julia/juliaup/channels.d/` directory and add those channels.

If multiple channels are detected with the same name (e.g. `~/.julia/juliaup/juliaup.json` and `~/.julia/juliaup/channels.d/dilum_custom_channels.json` both have a channel named `release`), `juliaup` should throw an error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how juliaup reads ~/.julia/juliaup/juliaup.json and constructs InstalledChannels. Define the loading behavior for *.json files under ~/.julia/juliaup/channels.d/, including duplicate channel names, then verify that custom channels are detected and duplicates produce an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.