Skip to content
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

fix command names being invalid package names #42

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

orangecms
Copy link
Member

to resolve #41 :)

Copy link
Member

@hugelgupf hugelgupf left a comment

Choose a reason for hiding this comment

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

Nice! Thank you.

test/12-fancy-cmd/go.mod Outdated Show resolved Hide resolved
src/pkg/bb/bbinternal/bb.go Outdated Show resolved Hide resolved
src/pkg/bb/bbinternal/bb.go Outdated Show resolved Hide resolved
test/12-fancy-cmd/test.sh Outdated Show resolved Hide resolved
@orangecms orangecms force-pushed the main branch 2 times, most recently from 5b705ad to d056583 Compare September 22, 2020 22:52
test.sh Outdated Show resolved Hide resolved
@orangecms orangecms force-pushed the main branch 4 times, most recently from c5889ec to 7354ebc Compare September 23, 2020 18:02
This may potentially allow for collisions again, because valid identifiers
allow for less characters than valid commands names.

Also add a test case for a "fancy" cmd name. This command name intentionally
starts with digits and contains characters not valid in identifiers (`-`).

Signed-off-by: Daniel Maslowski <[email protected]>
@hugelgupf hugelgupf merged commit a55b339 into u-root:main Sep 23, 2020
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.

Command names may be invalid package names
2 participants