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

Update build tags and error checking to Go 1.18 standards #73

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

Rican7
Copy link
Contributor

@Rican7 Rican7 commented Mar 6, 2024

Hi! Thanks for the fantastic library!

I'm using it in my define app and I noticed, when looking through the source to understand how it worked in a couple of situations, that the library was using some older Go functions and tags.

So, I stopped by to implement in this PR that:

@adrg
Copy link
Owner

adrg commented Mar 18, 2024

Hi @Rican7.

Thank you for the PR. Can you drop the changes in ci.yml please?
That file does not exist anymore as I had to redo the GitHub Actions workflows.

@Rican7
Copy link
Contributor Author

Rican7 commented Mar 21, 2024

Thank you for the PR.

No problem!

Can you drop the changes in ci.yml please? That file does not exist anymore as I had to redo the GitHub Actions workflows.

Sure! Let me rebase and remove inapplicable changes.

os.IsExist doesn't handle all types of errors, and while I'm not sure
exactly why some of these checks are here, or if they need to exist,
using the `errors.Is` should cover more bases.

See the `os.IsExist` function comment (https://pkg.go.dev/os#IsExist).
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1a6c2ca) to head (4f22cb2).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #73   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         7    -1     
  Lines          383       307   -76     
=========================================
- Hits           383       307   -76     

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

@adrg adrg changed the title Chore - Modern Go Update build tags and error checking to Go 1.18 standards Mar 21, 2024
@adrg adrg merged commit 490abf7 into adrg:master Mar 21, 2024
10 checks passed
@adrg
Copy link
Owner

adrg commented Mar 21, 2024

@Rican7 Merged. Thanks again. I added you to the contributors list in README.md.

@Rican7 Rican7 deleted the chore/modern-go branch March 21, 2024 10:21
@Rican7
Copy link
Contributor Author

Rican7 commented Mar 21, 2024

@adrg Awesome! Thank you!

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.

None yet

2 participants