-
Notifications
You must be signed in to change notification settings - Fork 71
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
PR: Allow activate-environment to be a path #137
PR: Allow activate-environment to be a path #137
Conversation
@bollwyvl I did not understand the issues before, querying Gtihub API is expensive as you have now noticed. Why do we need the miniforge releases? We should just build the URL from what the user requests (variants etc) and fail with |
At present, |
Might be less nice, but is what you have to provide to overcome the unnecessary problems with the API and havig a page with all that infi (not happenning soon form what I just read?) so I prefer going with explicit over implicit here :) we have |
This might not be as nice and convenient for the user but what if we deprecate If finding the right installer URL is tricky, we could collect a list in our up and coming fancy docs. |
Sure, sounds good. seems out of scope for this PR, will do another... one thing we can do then is have a default |
Agreed! @jaimergp let's explore our options on another issue :-p |
Is this ready for review @bollwyvl ? |
i feel like deprecation makes people sad... because fixing ci that used to work makes people sad. and the URL structures are fairly different between them, anyhow, even though they both come out of constructor. another reason i like the separate ones is that it becomes easy to use github search for examples when you have semantically-rich strings. |
yeah, unless we want to sneak anything else into the tests... i guess I haven't tried giving it a |
Looks like we need to keep |
19f36f1
to
c849891
Compare
inputs.activateEnvironment !== "base" && | ||
inputs.activateEnvironment !== "root" && | ||
inputs.activateEnvironment !== ""; | ||
const isValidActivate = !utils.isBaseEnv(inputs.activateEnvironment); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is utils.isBaseEnv
also checking for an empt string env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Names for a conda `base` env */
export const BASE_ENV_NAMES = ["root", "base", ""];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, otherwise looks good :)
Thanks @bollwyvl !
This follows up on #136 where we might want to allow for
activate-environment
to be a--prefix
rather than a--name
argument to various conda commands.Also removes some dead code which was using
--name
, and tweaks some more docs and typos in log messages.Of worrying note: I have now seen at least one
403
from the GitHub API when requesting the miniforge releases, despite my best efforts at caching. We probably need to:git
to list tags and build URLs from that... but we might pull pre-releases, etc.