-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The go.mod file contains all of the dependency information necessary to reproduce a build. There is a misconception that the go.sum file has similar utility to a lock file in other dependency management systems. However, this is incorrect. The go.sum file contributes nothing to dependency resolution. Instead, the go.sum file provides cryptographic hashes to ensure new files downloaded match files downloaded previously. So, while it is useful, it isn't at all necessary for Go modules. To summarize: a Go modules project may or may not have a go.sum file, but will always have a go.mod file.
- Loading branch information
Showing
6 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module foo | ||
|
||
require ( | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 | ||
gopkg.in/yaml.v2 v2.2.1 | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters