Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.6.1 only works if debug mode is enabled #12

Closed
jonahbeckford opened this issue Jul 6, 2022 · 4 comments
Closed

v0.6.1 only works if debug mode is enabled #12

jonahbeckford opened this issue Jul 6, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jonahbeckford
Copy link

Continues #11.

I tried v0.6.1 and it now only works if I have debug mode enabled:

Syncing back files
/usr/bin/rsync -uzrtopg  runner@192.168.64.2:work/ /Users/runner/work
rsync: link_stat "/Users/runner/work/dkml-c-probe/dkml-c-probe/runner@192.168.64.2:work/." failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(996) [sender=2.6.9]
Terminating VM
/usr/bin/sudo kill -s TERM 1469

I think it is because with an empty syncVerboseFlag:

action/src/action/action.ts

Lines 225 to 227 in 52ad2be

private get syncVerboseFlag(): string {
return core.isDebug() ? '-v' : ''
}

in

action/src/action/action.ts

Lines 235 to 242 in 52ad2be

await exec.exec('rsync', [
'-auzrtopg',
this.syncVerboseFlag,
'--exclude', '_actions/cross-platform-actions/action',
...flatMap(excludePaths, p => ['--exclude', p]),
`${this.workDirectory}/`,
`runner@${ipAddress}:work`
])

you would get the second argument (this.syncVerboseFlag) as an empty string.

rsync will see the empty string and try to sync that.

Originally posted by @jonahbeckford in #11 (comment)

@jacob-carlborg jacob-carlborg added the bug Something isn't working label Jul 6, 2022
@jacob-carlborg
Copy link
Contributor

I would have hoped the empty string would be ignored but I guess that only works when executing the command through a shell, which is not happening here.

@jacob-carlborg
Copy link
Contributor

Hmm, I think the CI pipeline for this project runs in debug mode, that's why it passed.

@jacob-carlborg
Copy link
Contributor

Please try 0.6.2 now.

jonahbeckford pushed a commit to diskuv/dkml-c-probe that referenced this issue Jul 6, 2022
@jonahbeckford
Copy link
Author

Works. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants