Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Add go.mod #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add go.mod #70

wants to merge 1 commit into from

Conversation

piggynl
Copy link

@piggynl piggynl commented Apr 2, 2022

Without go.mod, go build and go test fails with error:

go: cannot find main module, but found .git/config in /work/nfnt-resize
        to create a module there, run:
        go mod init

Since 1.16, golang will build packages in module-aware mode by default, see: https://go.dev/blog/go116-module-changes#modules-on-by-default

@caojen
Copy link

caojen commented Apr 20, 2022

It's so sad that nfnt/resize is no longer being updated. see: #63

@piggynl
Copy link
Author

piggynl commented Apr 22, 2022

Thank you for the information 😺

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants