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

port codebase to adapt to new thanos errors pkg replacing github.com/pkg/errors #5382

Closed
wants to merge 4 commits into from

Conversation

bisakhmondal
Copy link
Contributor

@bisakhmondal bisakhmondal commented May 24, 2022

In continuation of #5239

Related Issue: closes #5176

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Used the following snippet to automate the replacement and then a make format with manual imports ordering

for file in $(git grep -l "github.com/pkg/errors" | grep ".go"); do
  sed -i 's/errors\.Wrap(/errors\.Wrapf(/g' $file
  sed -i 's/errors\.Errorf(/errors\.Newf(/g' $file
  sed -i 's/errors\.New(/errors\.Newf(/g' $file
  sed -i 's/github\.com\/pkg\/errors/github\.com\/thanos-io\/thanos\/pkg\/errors/g'  $file
  echo "$file processing done"
done

Verification

make lint && make build works successfully

Signed-off-by: Bisakh Mondal <bisakhmondal00@gmail.com>
Signed-off-by: Bisakh Mondal <bisakhmondal00@gmail.com>
Signed-off-by: Bisakh Mondal <bisakhmondal00@gmail.com>
Signed-off-by: Bisakh Mondal <bisakhmondal00@gmail.com>
@saswatamcode
Copy link
Member

Thanks a lot for this effort! I wonder if we should do this port in one go, or split it component-wise somehow. 🙂
Also, test failures seem related!

Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

Looks good! I'm impartial as to whether we do this in one go or split by components or so. Since it's mechanical change, I'm fine with having it all here. However I'm also wondering if those failures are related 🤔.

@saswatamcode
Copy link
Member

Would you like to push this forward @bisakhmondal? 🙂

@stale
Copy link

stale bot commented Aug 12, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Aug 12, 2022
@stale stale bot closed this Sep 21, 2022
@matej-g
Copy link
Collaborator

matej-g commented Sep 21, 2022

What's the status of this?

@matej-g matej-g reopened this Sep 21, 2022
@bisakhmondal
Copy link
Contributor Author

the code has been ported to https://github.com/efficientgo/core
I think once @bwplotka finalizes the APIs there (had some double thoughts), I can clean it up with the new imports.
That's the plan, right? @bwplotka

@stale stale bot closed this Oct 1, 2022
@matej-g matej-g removed the stale label Oct 7, 2022
@matej-g
Copy link
Collaborator

matej-g commented Oct 7, 2022

Still needed

@matej-g matej-g reopened this Oct 7, 2022
@stale
Copy link

stale bot commented Nov 12, 2022

Hello 👋 Looks like there was no activity on this amazing PR for the last 30 days.
Do you mind updating us on the status? Is there anything we can help with? If you plan to still work on it, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity in the next week, this issue will be closed (we can always reopen a PR if you get back to this!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale
Copy link

stale bot commented May 21, 2023

Closing for now as promised, let us know if you need this to be reopened! 🤗

@stale stale bot closed this May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find replacement for https://github.com/pkg/errors
3 participants