-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Pain when installing a forked plugin #1461
Comments
You absolutely can “Add Repository” with a single https URL of a GitHub repo, or at least you could, unless something about the GitHub API changed. The only thing to note is that the repo name in the URL is used as the package name. |
I’ll be at my desktop tomorrow and can provide more info and read/reply to any other issues. |
Package Control ignores pre-releases by default and only installs them if explictly enabled on a per-package basis. This is documented in the default settings file (and only there, afaik). The name of the "release" does not matter, only the name of the tag does. |
I'm not sure why this didn't work for you. It just did for me. Could you provide the error you ran into?
If you are interested at proposing some additions to the documentation, head over to https://github.com/wbond/packagecontrol.io. |
Unfortunately no. It didn't give me any unexpected output in the console. Having read the responses here, I now think that it didn't work because I was still using a prerelease tag without enabling prereleases.
Yeah, that would be the easy workaround, but I have my Package Control settings sync'd across machines, and I wanted to leverage that to sync my forked package as well. I think I've got my questions answered. I'll give it another go once I get home and close this if I don't have any problems. Thanks, everyone. |
Well, now a new error mode has appeared. I removed my custom channel and my package. Then I added my package repo and re-installed. The
My guess is that I could get around this by renaming the repo, but… well I don't want to. I'm thinking about contributing to a couple more packages, and it'd be nice to have all my sublime-related things prefixed with |
No, because packages with hyphens in their name can't be imported by Sublime Text's Python plugin runtime. You will have to work around this. Either you clone into the Packages fodler under a different name or you store your packages at a different location altogether and use symlinks from the Packages folder to reference them. Packages in general use the name provided in the |
I've made a fork of a plugin, and wanted to install it through package control now rather than wait for upstream (which is already in the default channel). I did eventually get it working, but only after some hours of attempted magic, most of which I have not bothered to report.
tl;dr:
I was at first misled by
Add Repository
, thinking it meant to add a git repository that holds a sublime package. I therefore usedAdd Repository
typinghttps://github.com/Zankoku-Okuno/sublime-MoveByParagraph
. This silently failed to find my package, even watching the console output. I'll admit the documentation /is/ clear, even if it doesn't call out this confusion explicitly. However, it got me thinking: why not allow this method, since it's far more streamlined than what I eventually ended up doing?Following the advice of #258 (which perhaps should belong in the documentation), I created a github repo holding a package control repo—and if that's not an easy-to-communicate concept, I don't know what is /s. I didn't want to add a
repository.json
to my fork directly, as I didn't want it submitted back upstream. I made a1.2.3-beta
release in my fork and attempted to install. Package Control did find my git repo, but installed an unmodified version.Finally, I made a new release, being very careful to mimic upstream's releases (you know, because cargo-cult works if you do it well enough). I'm not sure if the name of the release matters, or that beta releases aren't recognized. If the former, I couldn't find this in the documentation. If the latter, I couldn't find any documentation to the effect of ignoring pre-release versions.
The text was updated successfully, but these errors were encountered: