-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix computer launch for windows #635
Fix computer launch for windows #635
Conversation
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
=======================================
Coverage 37.98% 37.98%
=======================================
Files 13 13
Lines 416 416
=======================================
Hits 158 158
Misses 246 246
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
app/cmd/computer_launch.go
Outdated
@@ -213,7 +215,14 @@ jcli agent launch agent-name --type jnlp`, | |||
} | |||
|
|||
var f *os.File | |||
if f, err = ioutil.TempFile("/tmp", "agent.jar"); err == nil { | |||
var tmpPath = "/tmp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we could use https://pkg.go.dev/io/[email protected]#TempDir to create a temporary directory here. And based on the temporary directory, we can create any files inside it.
hi @yJunS, please see the example: https://pkg.go.dev/io/[email protected]#example-TempDir. We don't need to specify |
Okay. I see. Maybe there is a certain problem with the old code usage |
LGTM |
* Fix computer launch for windows * Update create temporary directory * Remove some code
* Fix computer launch for windows * Update create temporary directory * Remove some code
* Fix computer launch for windows * Update create temporary directory * Remove some code
* ddd ddd update center_list * add support to conduct api test for plugins * fix some lint mistakes and update go.sum * Fix computer launch for windows (#635) * Fix computer launch for windows * Update create temporary directory * Remove some code * Run release drafter in the GitHub action (#636) * modify plugin_apitest.go * resolve the conflict * do some changes to pluginsWithProblemMap * revert last 6 changes that include some commits from others * do some changes to pluginsWithProblemMap * modify go.mod and go.sum * modify go.sum Co-authored-by: Yanjun Shi <[email protected]> Co-authored-by: Rick <[email protected]>
Make sure that you've checked the boxes below before you submit PR:
Always
For the bug fixes or features only
fix #634