Skip to content

Commit

Permalink
Replace go mod vendor with go mod tidy (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: divyansh42 <[email protected]>
  • Loading branch information
divyansh42 authored Apr 12, 2022
1 parent 0983be8 commit 3efbd70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Refer to the [Action Inputs](#action-inputs) section for more information.

| Project Type | Default `manifest_file` | Default Install Command |
| -------------- | --------------------- | ---------------------------- |
| Go | `go.mod` | `go mod vendor` |
| Go | `go.mod` | `go mod tidy` |
| Java | `pom.xml` | `mvn -ntp -B package` |
| Node.js (npm) | `package.json`, `package-lock.json` | `npm ci` |
| Node.js (yarn) | `package.json`, `yarn.lock` | `yarn install --frozen-lockfile` |
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installDeps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async function installDeps(
}

async function installGoDeps(): Promise<void> {
await Crda.exec("go", [ "mod", "vendor" ], { group: true });
await Crda.exec("go", [ "mod", "tidy" ], { group: true });
}

async function installMavenDeps(): Promise<void> {
Expand Down

0 comments on commit 3efbd70

Please sign in to comment.