-
Notifications
You must be signed in to change notification settings - Fork 215
Conversation
afc57e9
to
fedfbb7
Compare
main.go
Outdated
if err != nil { | ||
flog.Fatal("failed to sync settings: %v", err) | ||
} | ||
flog.Info("synced settings in %s", time.Since(start)) | ||
|
||
flog.Info("syncing extensions") | ||
err = syncExtensions(host) | ||
err = syncExtensions(host, *sshFlags) |
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.
Args should be flipped.
main.go
Outdated
`/bin/bash -c 'set -euxo pipefail || exit 1 | ||
wget -q https://codesrv-ci.cdr.sh/latest-linux -O `+codeServerPath+` | ||
downloadScript := `/bin/bash -c 'set -euxo pipefail || exit 1 | ||
wget -q https://codesrv-ci.cdr.sh/latest-linux -O ` + codeServerPath + ` |
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.
why two wget?
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.
No idea how that got there.. That script is completely broken. We're going to want some tests
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.
I think its a good idea we http.Get on our side and then just write the binary to the remote side if it has changed. Would be nice and easy to test as well versus bash scripts.
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.
The problem is the bin is 90MB.
- Also use ssh flags when running the download script Resolves #19
6aa641b
to
53fc8fa
Compare
Resolves #19