多了个空格
pigzzz
4年前
修改理由:
此投稿已在 4年前 合并。
内容修改:
Old | New | Differences |
---|---|---|
1 | ||
2 | 1 | ## 工具 |
3 | 2 | |
4 | 3 | ### Go 命令 | … | … |
7 | 6 | |
8 | 7 | 当主模块包含顶级 `vendor` 目录且其 `go.mod` 文件指定 `go``1.14` 或更高版本时,`go` 命令现在默认为`-mod=vendor`。该标志的新值 `-mod=mod` 使 `go` 命令改为从模块缓存中加载模块(如不存在`vendor`目录时)。 |
9 | 8 | |
10 | 当设置 `-mod=vendor` 时(显式或默认设置),`go` 命令现在验证主模块的 `vendor/module | |
9 | 当设置 `-mod=vendor` 时(显式或默认设置),`go` 命令现在验证主模块的 `vendor/modules.txt` 文件与其`go.mod` 文件是否一致。 | |
11 | 10 | |
12 | 11 | `go` `list` `-m` 不再无提示地忽略在 `vendor` 目录中不提供包的可传递依赖项。如果设置了`-mod=vendor` 并且请求了 `vendor/modules.txt` 中未提及的模块的信息,那么现在会显示失败。 |