-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Flags().Uin64P broken #1869
Comments
Does this issue belong in https://github.com/spf13/pflag which does the flag parsing for Cobra? |
There are no issues with pflag's handling of uint64, nor Cobra's usage of pflag: Playground demo. PR spf13/cast#155 just needs to be merged to fix Cobra CLIs that rely on Viper. |
I forgot to mention that if you need a temporary workaround until things get fixed, you can vendor your module's dependencies and swap the copy of caste.go in the vendor directory for the one in the PR. |
@memreflect thank you SO much for taking the time to triage this!! ❤️ AND for writing such a clear and concise example PoC 👍 |
The Cobra project currently lacks enough contributors to adequately respond to all issues. This bot triages issues and PRs according to the following rules:
|
ping |
ToUintE() fails to parse uint bigger than math.MaxInt64 in the cast dependancy. This prevents people from using numbers like macOS kernel addresses as arguents to cobra:
example:
fails because it thinks I entered 0 as the --vaddr (virtual address) to be disassembled
The text was updated successfully, but these errors were encountered: