Skip to content

cmds/core/uniq: add ignore case flag#2520

Merged
rminnich merged 2 commits into
u-root:mainfrom
binjip978:uniq-add-i
Oct 15, 2022
Merged

cmds/core/uniq: add ignore case flag#2520
rminnich merged 2 commits into
u-root:mainfrom
binjip978:uniq-add-i

Conversation

@binjip978
Copy link
Copy Markdown
Contributor

gofmt and typo fix

Signed-off-by: Siarhiej Siemianchuk pdp.eleven11@gmail.com

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 12, 2022

Codecov Report

Base: 73.90% // Head: 73.74% // Decreases project coverage by -0.15% ⚠️

Coverage data is based on head (47d0847) compared to base (49ddb74).
Patch coverage: 96.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2520      +/-   ##
==========================================
- Coverage   73.90%   73.74%   -0.16%     
==========================================
  Files         403      403              
  Lines       40938    40949      +11     
==========================================
- Hits        30254    30199      -55     
- Misses      10684    10750      +66     
Impacted Files Coverage Δ
cmds/core/uniq/uniq.go 92.06% <96.66%> (+7.44%) ⬆️
pkg/acpi/sdt.go 0.00% <0.00%> (-86.67%) ⬇️
pkg/acpi/bios.go 0.00% <0.00%> (-83.79%) ⬇️
pkg/acpi/raw.go 75.00% <0.00%> (-14.29%) ⬇️
pkg/acpi/rsdp.go 41.02% <0.00%> (-10.26%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rminnich rminnich added the Awaiting author Waiting for new changes or feedback for author. label Oct 13, 2022
rminnich
rminnich previously approved these changes Oct 13, 2022
@rminnich
Copy link
Copy Markdown
Member

circleci is in a bad place lately

@binjip978
Copy link
Copy Markdown
Contributor Author

seems like circleci worked this time

@rminnich rminnich added automerge Applying this label auto-merges the PR when ready and removed automerge Applying this label auto-merges the PR when ready labels Oct 14, 2022
@rminnich
Copy link
Copy Markdown
Member

I realized I have two questions.

  1. The standard unix way to do this: tr A-Z a-z file | uniq. Is there a real need for -i
  2. we'd like to make u-root conform more to posix, and this is not in posix

request: fix coverage issue.

@binjip978
Copy link
Copy Markdown
Contributor Author

I realized I have two questions.

  1. The standard unix way to do this: tr A-Z a-z file | uniq. Is there a real need for -i
  2. we'd like to make u-root conform more to posix, and this is not in posix

Yea I agree there are now need to -i flag and it's definitely not part of posix https://pubs.opengroup.org/onlinepubs/9699919799/utilities/uniq.html, but it was requested explicitly in roadmap.md so I decided to add it, also -i is a part of freebsd, linux and macOS uniq so maybe some people need it.

But I agree it's better idea to remove it, but not 100% sure, due the roadmap request.

gofmt and typo fix

Signed-off-by: Siarhiej Siemianchuk <pdp.eleven11@gmail.com>
@binjip978
Copy link
Copy Markdown
Contributor Author

@rminnich probably I messed up with force push, but it reports other files in coverage diff, but it should be improved

Signed-off-by: Siarhiej Siemianchuk <pdp.eleven11@gmail.com>
@rminnich
Copy link
Copy Markdown
Member

I really appreciate you paying attention to the roadmap! Thank you!

I guess if this is felt to be important, we can accept it?

@binjip978
Copy link
Copy Markdown
Contributor Author

I'm ok to accept it, if it was required in roadmap, maybe it save some typing time for someone :)

@rminnich
Copy link
Copy Markdown
Member

In this case, because we know that some script or makefile will break if we do not support it, I guess we can accept -i!

Thanks for your careful reading of the roadmap and your contribution.

@rminnich rminnich merged commit 793a1c1 into u-root:main Oct 15, 2022
@binjip978 binjip978 deleted the uniq-add-i branch November 15, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting author Waiting for new changes or feedback for author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants