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

feature/go-mod #107

Merged
merged 3 commits into from
Oct 24, 2019
Merged

feature/go-mod #107

merged 3 commits into from
Oct 24, 2019

Conversation

SuddenGunter
Copy link
Collaborator

@SuddenGunter SuddenGunter commented Oct 23, 2019

switch to go modules

Description

Related Issue
resolve #101

Checklist

  • Updated README.md s

@johnfercher
Copy link
Owner

Keeping the vendor make the project retro compatible? If yes, I think we should keep saving the vendor.

@SuddenGunter
Copy link
Collaborator Author

SuddenGunter commented Oct 24, 2019

Keeping the vendor make the project retro compatible

not sure
it's more like a holywar subject, but https://www.reddit.com/r/golang/comments/9ai79z/correct_usage_of_go_modules_vendor_still_connects/e4whe6l?utm_source=share&utm_medium=web2x
for me it seems more like a backup in case dependency went missing like left-pad in npm and also allows to freeze specific package version in vendor folder.
but
1 go.mod + go.sum allow to specify version of dependency
2 go modules proxy can be dependency backups storage even if dependency deleted from github
https://arslan.io/2019/08/02/why-you-should-use-a-go-module-proxy/

starting from 1.13 go get uses google modules proxy by default, so I think we can drop vendoring and it would be safe https://golang.org/doc/go1.13

IMHO vendoring more fits to languages without normal packaging system, like C 20 years ago. modern Go doesn't need it :)

@codecov-io
Copy link

Codecov Report

Merging #107 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #107   +/-   ##
=======================================
  Coverage   98.31%   98.31%           
=======================================
  Files           8        8           
  Lines         473      473           
=======================================
  Hits          465      465           
  Misses          4        4           
  Partials        4        4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 43908ce...39c7bd9. Read the comment docs.

@johnfercher johnfercher merged commit 01ab769 into johnfercher:dev Oct 24, 2019
This was referenced Oct 24, 2019
@SuddenGunter SuddenGunter mentioned this pull request Oct 24, 2019
@marco-m
Copy link

marco-m commented Oct 25, 2019

Very happy to see Go modules here :-)
I agree with @SuddenGunter analysis, +1 to get rid of vendoring.

felix pushed a commit to felix/maroto that referenced this pull request May 2, 2022
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.

5 participants