Skip to content

Conversation

magnalite
Copy link
Contributor

Currently we set no limit for package names. This PR ensures that packages names don't contain more than 64 characters. This is the same limit crates.io uses and seems reasonable for our use case too. I also added a check for package scope length. Although checking scope length shouldn't be necessary I didn't see much reason to not include it either.

@magnalite magnalite linked an issue Aug 24, 2021 that may be closed by this pull request
Copy link
Contributor

@LPGhatguy LPGhatguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@LPGhatguy LPGhatguy merged commit 0bd35e6 into main Aug 24, 2021
@LPGhatguy LPGhatguy deleted the set-max-package-name-length branch August 24, 2021 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an upper limit to the length of a dependency name
2 participants