Skip to content

Use source flag or node-style query key (path:) to lock 1 specific origin #83

Description

@zm-cttae

I'd prefer to install a package from only file exchange sometimes, or github sometimes. Especially when names could clash!
Preferably, we should have the choice to force a specific source and then error out on 404 from that origin.

Activity

  1. mobeets commented on Apr 10, 2023

    @mobeets
    Owner

    As it is currently, it searches file exchange first, and then github. You can pass --github-first or -g to search github first. Does that help with what you're looking for, or slightly different?

  2. zm-cttae commented on Apr 10, 2023

    @zm-cttae
    ContributorAuthor

    This would be about locking search to one registry - in case we want to avoid unrelated GitHub scripts for example!

  3. mobeets commented on Apr 10, 2023

    @mobeets
    Owner

    Gotcha, this sounds like a pretty simple fix. Mostly just adding a new name-value argument, -s for source, and then updating the function findUrl. If you want to take a stab at it and make a pull-request, please do!

  4. changed the title [-]Use node-style `path:` feature to force specific source[/-] [+]Use source flag or node-style query key (`path:`) to lock 1 specific origin[/+] on Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions