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

lookout-sdk binary #3

Merged
merged 3 commits into from
Sep 4, 2018
Merged

lookout-sdk binary #3

merged 3 commits into from
Sep 4, 2018

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Sep 4, 2018

  • update to lookout v0.1.4
  • fix python lib packaging

@bzz bzz requested review from smacker and carlosms September 4, 2018 06:30
@bzz bzz self-assigned this Sep 4, 2018
@bzz bzz changed the title ci: lookout-sdk binary name [WIP] Update \w new lookout-sdk binary Sep 4, 2018
@bzz bzz force-pushed the lookout-sdk-update branch 2 times, most recently from 4a7de2c to c4219b3 Compare September 4, 2018 07:18
@bzz
Copy link
Contributor Author

bzz commented Sep 4, 2018

CI fails on python example due to lookout_sdk python library packaging issues, going to fix it here asap

echo "Unable to extract lookout release archive" >&2
exit 2
fi

if ! mv lookout_sdk_*/lookout .. ; then
echo "Unable to move lookout binary file" >&2
if ! mv lookout-sdk_*/lookout-sdk ../lookout_sdk ; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the rename from -sdk to _sdk?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it's lookout-sdk dir we are in, and then mv binary with the same name to ../lookout_sdk fails trying to overwrite it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a comment with clarifications

@bzz bzz changed the title [WIP] Update \w new lookout-sdk binary [WIP] lookout-sdk binary and python packaging Sep 4, 2018
@bzz bzz mentioned this pull request Sep 4, 2018
@bzz bzz changed the title [WIP] lookout-sdk binary and python packaging lookout-sdk binary Sep 4, 2018
@bzz
Copy link
Contributor Author

bzz commented Sep 4, 2018

Python packaging gong to handled in the separate PR

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@@ -12,7 +12,7 @@ curl -s --connect-timeout 5 \
--retry-delay 0 \
--retry-max-time 40\
"https://api.github.com/repos/src-d/lookout/releases/latest" \
| tee -a ../lookout-install.log \
|& tee -a ../lookout-install.log \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why &?

Copy link
Contributor Author

@bzz bzz Sep 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allthough it's bashism, this is a nice shortcut to re-direct both, stdin and stderr together

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@bzz
Copy link
Contributor Author

bzz commented Sep 4, 2018

Conditionally disable python CI profile for now, until I fix the packaging in a separate PR.

Going to merge as hotfix, as soon as CI is green.

@bzz bzz merged commit 8928db9 into src-d:master Sep 4, 2018
@bzz bzz deleted the lookout-sdk-update branch September 4, 2018 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants