52 Commits

Author SHA1 Message Date
z-Fng a5c3b58e83 fix(buckets): Skip Git invocation if unavailable in new_issue_msg (#6591) 2026-04-03 10:28:20 +08:00
abgox 0e698ccbd5 refactor(output): Combine the separated outputs into a single output (#6545)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2025-11-11 20:48:03 +08:00
abgox 2120c28c22 fix(buckets): fix the filtering condition when retrieving the number of manifests (#6509) 2025-11-08 18:26:06 +08:00
z-Fng ff38652e01 fix(buckets|scoop-info): Switch git log date format to ISO 8601 to avoid locale issues (#6446) 2025-08-21 14:18:33 +08:00
Hsiao-nan Cheung 7cc4faea1d fix(bucket): Implement error handling for failed bucket addition (#6051) 2024-07-09 01:16:23 +08:00
Hsiao-nan Cheung 5ce70c4139 fix(sqlite): Update cache after removing bucket or manifests (#5967) 2024-05-15 17:07:37 +08:00
Hsiao-nan Cheung 1dd479f0be fix(database): Use 'Find-BucketDirectory()' to locate bucket dir (#5955) 2024-05-11 14:50:20 +08:00
Hsiao-nan Cheung 776135e0ab fix(database): Update cache when adding bucket (#5946) 2024-05-08 18:10:13 +08:00
HUMORCE 3dfb4bfd97 fix(buckets): Avoid error messages for unexpected dir (#5549) 2023-06-30 00:18:19 +08:00
Hsiao-nan Cheung 559c6f9e64 feat(bucket): Make official buckets higher priority (#5398) 2023-03-10 17:24:41 +08:00
Rashil Gandhi e2558ace75 fix(chore): Handle spaces in git command arguments (#5375)
* fix(chore): Handle spaces in git command arguments

* changelog

* Use splatting
2023-02-07 04:55:54 +05:30
Richard Kuhnt 360daa706a feat(chore): Improve git.exe execution and add parallel bucket updates (#5122) 2022-11-23 13:58:51 +08:00
Hsiao-nan Cheung 7f47f662e2 feat(subdir): Allow subdir in 'bucket' (#5119) 2022-09-28 11:22:33 +08:00
zStruCat b4e0ff16a6 fix(scoop-import): Use foreach instead of ForEach-Object for nullity check (#5034)
* Add nullity check and alread_in_local_bucket check

* update CHANGELOG

* Use foreach instead of ForEach-Object

* changelog

* update help

* refine the info and warning when adding an already-added bucket

* Update lib/buckets.ps1

Make warning clearer

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
2022-07-07 10:49:53 +05:30
Daniel Villarreal 64364b40b4 fix(buckets): Make sure list_buckets return array (#4979) 2022-06-10 18:06:00 +08:00
Hsiao-nan Cheung ccd067b2b1 refactor(manifest): Rename 'Find-Manifest()' to 'Get-Manifest()' (#4966) 2022-06-07 09:31:30 +08:00
Hsiao-nan Cheung d056d542db fix(core): Use Invoke-Command instead of Invoke-Expression (#4941) 2022-05-26 10:54:34 +08:00
Chawye Hsu c6fc2de306 fix(buckets): Don't write message OK before bucket is cloned (#4925) 2022-05-15 17:10:08 +08:00
Hsiao-nan Cheung a2600b1203 fix(buckets): Don't check remote URL of non-git buckets (#4923) 2022-05-15 15:49:38 +08:00
L. Yeung 22365c2169 fix(bucket): Return empty list correctly in Get-LocalBucket (#4885)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
2022-04-27 17:37:18 +08:00
Hsiao-nan Cheung 6296822f1f perf(scoop): Load libs only once (#4839) 2022-04-21 21:34:26 +08:00
Hsiao-nan Cheung 32de4c5714 refactor(bucket): Move 'Find-Manifest' and 'list_buckets' to 'buckets' (#4814) 2022-03-23 10:47:52 +08:00
Rashil Gandhi 8c02776c6c refactor(git): Remove unused functions (#4703)
* refactor(git): Remove unused functions

* unused imports
2022-02-01 11:37:44 +00:00
HUMORCE 5b0bdaf893 refactor(git): Use 'git -C' to specify the work directory instead of 'Push-Location'/'Pop-Location' (#4697)
* add `git_cmd`

-without any preset command/args

* remove unnecessary import

- `git.ps1`

* stop `Push-Location` and `Pop-Location` before/after git operations

* stop `Push-Location` and `Pop-Location` before/after git operations

* consistency of naming variable

* CHANGELOG

* punctuation mark

* remove functions that are no longer used

- `git_fetch`
- `git_pull`
- `get_checkout`
2022-02-01 13:16:45 +05:30
Richard Kuhnt 8ee45a57dc chore(git): Remove unnecessary git_proxy_cmd() calls for local commands 2019-10-18 16:22:34 +02:00
gitolicious 8165b1d468 fix(bucket): only lookup directories in buckets folder (#3631)
IntelliJ is putting a project file in the buckets folder when setting up a project there. The bucket lookup then tries to open this as a folder as it lacks directory filter.
2019-09-06 16:00:23 +02:00
Hsiao-nan Cheung a757dea15e refactor(cmd_available/Get-Command): Add Test-CommandAvailable function (#3314) 2019-04-28 18:53:00 +02:00
Hsiao-nan Cheung 58eb2e9bff buckets.ps1: Fix new_issue_msg (#3375)
buckets.ps1: Fix new_issue_msg
2019-04-26 16:58:46 +02:00
Jakub Čábera 56d54d1c91 feature: Prepare extraction of main bucket (#3060)
- Add preparing changes for extracting the main bucket to https://github.com/scoopinstaller/scoop-main
- Download main bucket on installation
- Add check_main_bucket function
- Add main bucket to buckets.json
- Add docker-compose.yml with default debugging image
- Remove old TODOs
- Refactor bucketdir -> Find-BucketDirectory
- Remove redundant .vscode settings
2019-04-24 21:08:53 +02:00
Richard Kuhnt 9eed3d8914 refactor(install): rename locate() to Find-Manifest()
See https://github.com/lukesampson/scoop/issues/3339#issuecomment-485242390
2019-04-22 12:44:07 +02:00
Jakub Čábera f8c4d174a8 [buckets] Get back to if (#3351) 2019-04-21 20:48:26 +02:00
Jakub Čábera 4a2f3bbfe8 fix (#3350)
[Regression] Fix search after buckets optimize
2019-04-21 20:14:34 +02:00
Jakub Čábera 4463514948 [buckets] Optimize buckets function (#3341)
* Optimize buckets function
* Use Verb-Noun naming
* Add Show-DeprecatedWarning function to core
2019-04-21 13:02:19 +02:00
Jakub Čábera 54235efe59 Fix buckets.ps1: regression from bucket folder structure (#3218)
- Closes lukesampson/scoop-extras#1794
2019-03-18 11:39:40 +01:00
Jakub Čábera 1113b3b049 buckets.ps1: Correct bucket URL for new issues (#3141)
- support for ssh and https remotes
2019-02-19 19:43:55 +01:00
Jakub Čábera ec23179623 buckets: Move function into lib from lib-exec (#3062)
* buckets: Move function into lib from lib-exec

There is no reason to have it inside lib-exec since, it's all internal functions, which could be used inside other code

lib-exec scripts should be slimmed as possible, as they are only code runners with some validation

* Fix whitespace
2019-02-01 18:10:36 +01:00
Jakub Čábera 0029f0b29d Fix regression from #2878 (#2899)
Fix regression from #2878
2018-12-14 12:51:17 +01:00
Jakub Čábera 000f1a7473 Support nested bucket folder in external buckets (#2878)
- Closes #2531 

Actual behaviour is kept and nothing is broken.

If external bucket contains `bucket` folder it's used for finding manifests.

How to test:

1. Create folder `TestBucket` in `$env:SCOOP\buckets`
1. Create manifest `CosiTest.json` with hello manifest # Or some other name which definetely cannot exists
1. execute `.\bin\scoop.ps1 install CosiTest` within this branch
1. Installing done
1. `.\bin\scoop.ps1 uninstall CosiTest`
1. Create folder `bucket` in `TestBucket` directory and copy CosiTest.json as `bucket\CosiTestBucket.json`
1. `.\bin\scoop.ps1 install CosiTest`
1. Installation will failed with `Couldn't find manifest for 'CosiTest'.`
1. `.\bin\scoop.ps1 install CosiTestBucket`
1. Installation Done
1. `.\bin\scoop.ps1 uninstall CosiTestBucket`
1. Unnstallation Done
2018-12-13 21:10:08 -08:00
Richard Kuhnt 1eb2609db5 apps_in_bucket(): Use $_.Name on gci result (closes #2707) 2018-10-29 15:33:01 +01:00
Richard Kuhnt e82587dfc4 buckets: change wording of new_issue_msg() 2018-09-10 13:21:25 +02:00
Richard Kuhnt f8f9b75f05 Option to skip hash validation and error message improvements (#2260)
* Add show_app() function for displaying `app/bucket@version`

* Add option to skip hash check on install/update

Allows users to install an app when the manifest provides an outdated hash

* Show filename instead of robocopy output when moving fails

* Add new_issue_msg() for nicer error messages (with link bucket repo)

- returns a message with a link to the buckets GitHub repository
- clicking on the link opens a new issues with a predefined title

* Use new_issue_msg() for errors while moving files

- this removes the unreadable robocopy error dumps

* Use new_issue_msg() error handling for check_hash()

* Show robocopy exit code
2018-06-14 18:30:05 +02:00
Chawye Hsu e1bb1e91d0 Lint: PSAvoidUsingCmdletAliases (#2075) 2018-03-03 18:41:19 +01:00
Simon Hartcher 3bcdce409b Support for scoop install <bucket>/<app>
- TODO: support install of same name apps from different buckets?
2016-01-24 22:35:43 +11:00
Simon Hartcher bea3189583 Add ability to search known buckets that haven't been added locally
By using githubs api we can search known buckets that haven't been added
to the local scoop instance. When a local search doesn't return any
results, other known buckets will be searched via github. If the rate
limit has been reached (60 per hour as of impl) the search won't occur.
2016-01-24 17:57:06 +11:00
Roy Ivy III 6d9bca805f whitespace cleanup
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Luke Sampson 482f9b6637 add config command 2014-05-12 10:19:13 +10:00
Luke Sampson 291c3561e1 handle app found in more than one bucket (just return first, rather than all) 2013-10-04 14:27:06 +10:00
Luke Sampson 7382e17561 convert spaces to tabs 2013-08-15 13:05:00 +10:00
Luke Sampson b4d7cf3c17 refactor for buckets 2013-08-08 10:39:31 +10:00
Luke Sampson b852236bd7 start on scoop search for buckets, fix a few places where latest_version was used instead of current_version 2013-08-07 16:24:55 +10:00