8000 build: upgrade `go` directive in `go.mod` to 1.17 by Juneezee · Pull Request #423 · AllenDang/giu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

build: upgrade go directive in go.mod to 1.17 #423

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

Merged
merged 1 commit into from
Dec 23, 2021
Merged

build: upgrade go directive in go.mod to 1.17 #423

merged 1 commit into from
Dec 23, 2021

Conversation

Juneezee
Copy link
Contributor

This PR upgrades the go directive in go.mod file by running go mod tidy -go=1.17 to enable module graph pruning and lazy module loading.

Note 1: This does not prevent users with earlier Go versions from successfully building packages from this module.

Note 2: The additional require directive is used to record indirect dependencies for Go 1.17 or higher, see https://go.dev/ref/mod#go-mod-file-go.

This commit enables support for module graph pruning and lazy module
loading for projects that are at Go 1.17 or higher.

Reference: https://go.dev/ref/mod#go-mod-file-go
Reference: https://go.dev/ref/mod#graph-pruning
Reference: https://go.dev/ref/mod#lazy-loading
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
go 1.16
go 1.17
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is it necessary? IMO it is better to keep support for older go versions as long as possible

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, I'm sorry I've just read pr description 😀

Comment on lines 5 to +17
require (
github.com/AllenDang/go-findfont v0.0.0-20200702051237-9f180485aeb8
github.com/AllenDang/imgui-go v1.12.1-0.20211220065947-c3e78789ac41
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211213063430-748e38ca8aec
github.com/go-resty/resty/v2 v2.7.0
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/sahilm/fuzzy v0.1.0
github.com/stretchr/testify v1.7.0
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
)

require (
Copy link
8000
Collaborator

Choose a reason for hiding this comment

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

why is there a second require directive 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, forgot to read pr description XD

Copy link
Collaborator
@gucio321 gucio321 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Merging #423 (9169d14) into master (51e4af3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #423   +/-   ##
======================================
  Coverage    2.94%   2.94%           
======================================
  Files          30      30           
  Lines        3092    3092           
======================================
  Hits           91      91           
  Misses       3001    3001           

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 51e4af3...9169d14. Read the comment docs.

@AllenDang AllenDang merged commit 7a0c442 into AllenDang:master Dec 23, 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.

4 participants
0