Skip to content

fix: variable name conflicts with built in function#1448

Merged
TerryHowe merged 5 commits into
oras-project:mainfrom
TerryHowe:variable-name-conflict
Jul 19, 2024
Merged

fix: variable name conflicts with built in function#1448
TerryHowe merged 5 commits into
oras-project:mainfrom
TerryHowe:variable-name-conflict

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

The variable name len conflicts with the built in. This will simplify my other PR a bit as well.

@codecov

codecov Bot commented Jul 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.52%. Comparing base (9e5e766) to head (c3e5944).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1448      +/-   ##
==========================================
+ Coverage   85.47%   85.52%   +0.05%     
==========================================
  Files         108      108              
  Lines        3827     3827              
==========================================
+ Hits         3271     3273       +2     
+ Misses        332      331       -1     
+ Partials      224      223       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@TerryHowe TerryHowe force-pushed the variable-name-conflict branch from 0dfa744 to 958e7e6 Compare July 18, 2024 15:09
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Comment thread cmd/oras/internal/display/status/progress/manager.go Outdated

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with minor suggestions.

qweeah added 2 commits July 19, 2024 07:16
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah

qweeah commented Jul 19, 2024

Copy link
Copy Markdown
Contributor

Added a unit test to cover the missing line, but I have wrongly pushed to #1447. Guess this should be merged first and merging #1447 will save that fault.

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@TerryHowe TerryHowe merged commit cdb60fc into oras-project:main Jul 19, 2024
@TerryHowe TerryHowe deleted the variable-name-conflict branch September 11, 2025 14: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.

2 participants