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

get rid of all module deps #24

Merged
merged 1 commit into from
Feb 26, 2021
Merged

get rid of all module deps #24

merged 1 commit into from
Feb 26, 2021

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Feb 26, 2021

(see commit message)

sergi/go-diff is only used in one test, though having it as a module
dependency is still noteworthy. That will become less of a problem once
lazy module loading is widespread, but that's still at least one year
away.

Plus, we only used go-diff for a simple use case: to show a diff for a
failed diff test. We already print the got/want text, so a diff is
strictly speaking not necessary. Plus, if printing the entire text is
reasonable, it's not like the diff would matter in terms of printing
less text.

While at it, bump the go language version from 1.13 to 1.15, since Go
1.14.x and older are no longer maintained.

Fixes pkg#23.
@mvdan mvdan requested a review from josharian February 26, 2021 15:34
@myitcv
Copy link

myitcv commented Feb 26, 2021

LGTM in the context of rogpeppe/go-internal#131, but I'll leave to @josharian to actually review.

Copy link
Contributor

@josharian josharian left a comment

Choose a reason for hiding this comment

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

Thanks!

@mvdan mvdan merged commit 20ebb0f into pkg:main Feb 26, 2021
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

3 participants