wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.77k stars 816 forks source link

Disallow "Add Repository" #1585

Closed bostick closed 1 year ago

bostick commented 2 years ago

I have a git repository that has source for building a package, but the repo is not the package itself.

If a user did "Add Repository" on the git repo and installed the package, then the resulting .sublime-package would be very strange and incorrect.

I would like a way to prevent users from doing "Add Repository".

Is this possible?

deathaxe commented 1 year ago

No, there is not. There's also no way for Package Control, which git repositories can be added or not.

FichteFoll commented 1 year ago

What we could talk about is adding a feature for the Add Repository command to

  1. Switch to an input handler
  2. Add a second optional prompt for a name to give to the package represented by provided git url (if it is a git url instead of a link to a repository.json file).