Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 5c86b1b

Browse files
authored
Work with relative path
1 parent ad214b8 commit 5c86b1b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/go-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
uses: dsp-testing/go-snapshot-action@lsep/go-list-impl
1919
with:
2020
go-mod-path: go-example/go.mod
21-
go-build-target: go-example/cmd/octocat.go
21+
go-build-target: cmd/octocat.go

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function detect() {
8080
}
8181
const metadataInput = core.getInput('metadata');
8282
process.chdir(goModDir);
83-
console.log(`Running go package detection in ${path} on build target ${goBuildTarget}`);
83+
console.log(`Running go package detection in ${process.cwd()} on build target ${goBuildTarget}`);
8484
const options = { detector };
8585
if (metadataInput) {
8686
const metadata = JSON.parse(metadataInput);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function detect () {
5050

5151
process.chdir(goModDir)
5252
console.log(
53-
`Running go package detection in ${path} on build target ${goBuildTarget}`
53+
`Running go package detection in ${process.cwd()} on build target ${goBuildTarget}`
5454
)
5555
const options: { detector: Detector; metadata?: Metadata } = { detector }
5656
if (metadataInput) {

0 commit comments

Comments
 (0)