-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: support for local repos #601
Conversation
for more information, see https://pre-commit.ci
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.
If a secondary repo is misconfigured, operations like install and download fail.
Make sure to allow properly configured repos to work even if a misconfigured one exists. Add a warning about the misconfigured one
…into feat/local-repos
for more information, see https://pre-commit.ci
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.
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.
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.
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.
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
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.
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.
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.
* feat(scripts): local repo support * feat(add-repo): format local repo * fix(add-repo): hide curl test output * fix(add-repo): hide curl test output again * fix(add-repo): Add success message * fix(main): url check on local file * fix(main): missing `;` * fix(download): curl output to file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat(search): add `file://` and warning * fix(search,main): error/warn messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix(search): add path cases * fix(search): replace backticks * fix(search): replace single quotes * fix(search): local repo formatting * sty(search): change color of `@` * Update misc/scripts/download.sh Co-authored-by: Plasma <hwengerstickel@protonmail.com> * fix(search): specifyRepo path formatting * fix(search): rework path parsing * style(search): add missing space Co-authored-by: Plasma <hwengerstickel@protonmail.com> * fix(search): add missing `*` * fix(search): readlink doesn't replace `~/` * fix(search): add missing `*`, again * chore(misc): pre-commit hooks * fix(add-repo): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(download): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(search): `file://` check before github/gitlab * fix(main): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(main): check file and return false * fix(search): warn ask once * fix(search): extra replace $HOME case * feat(search): link `repolist.txt` on supported terminals * fix(search): suppress sed error Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Plasma <hwengerstickel@protonmail.com> Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> Former-commit-id: c996540
* feat(scripts): local repo support * feat(add-repo): format local repo * fix(add-repo): hide curl test output * fix(add-repo): hide curl test output again * fix(add-repo): Add success message * fix(main): url check on local file * fix(main): missing `;` * fix(download): curl output to file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat(search): add `file://` and warning * fix(search,main): error/warn messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix(search): add path cases * fix(search): replace backticks * fix(search): replace single quotes * fix(search): local repo formatting * sty(search): change color of `@` * Update misc/scripts/download.sh Co-authored-by: Plasma <hwengerstickel@protonmail.com> * fix(search): specifyRepo path formatting * fix(search): rework path parsing * style(search): add missing space Co-authored-by: Plasma <hwengerstickel@protonmail.com> * fix(search): add missing `*` * fix(search): readlink doesn't replace `~/` * fix(search): add missing `*`, again * chore(misc): pre-commit hooks * fix(add-repo): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(download): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(search): `file://` check before github/gitlab * fix(main): follow redirects Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> * fix(main): check file and return false * fix(search): warn ask once * fix(search): extra replace $HOME case * feat(search): link `repolist.txt` on supported terminals * fix(search): suppress sed error Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Plasma <hwengerstickel@protonmail.com> Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com> Former-commit-id: ef6727c186442186313a6b5f48ecf4eb7a732d98 [formerly c996540] Former-commit-id: 1ccce06
Purpose
Add support for locally hosted repos
Approach
Use
curl
instead ofwget
due to it'sfile://
protocol support. Format path inadd-repo
when adding local repos.Checklist