Renaming a Package
The following guide will step you through the process of renaming a package you have submitted to Package Control.
1. Review the New Name
- Read the naming guidelines to make sure your new name will work.
2. Fork the Channel
- Fork the Package Control Channel.
- Clone your fork to your machine
- Open the package_control_channel/ folder with Sublime Text
3. Update the Repository
- Remove your package entry from its old location. It will be in one of the JSON files in the repository/ sub-folder of package_control_channel/.
- Paste the package entry into the correct JSON file based on the new name. We keep package entries alphabetized to reduce conflicts when merging pull requests.
- Update the name key with the new name.
-
Add a previous_names key to the top-level JSON structure for your package. previous_names needs to be an array of strings. For example:
{ "name": "AlignmentPlus", "previous_names": ["Alignment"], "details": "https://bitbucket.org/wbond/sublime_alignment", "releases": [ { "sublime_text": "*", "tags": true } ] }
4. Run the Tests
- Install the ChannelRepositoryTools package via Package Control.
- Run the ChannelRepositoryTools: Test Default Channel command from the command palette and ensure the tests pass.
5. Submit a Pull Request
- Browse to your fork on github.com
- Click on Pull Requests in the right-hand nav and click New Pull Request
- Enter a description in the Title field
- Click the Create pull request button