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

fix: Reduce api call #13

Merged
merged 3 commits into from
Jul 6, 2018

Conversation

yuichi10
Copy link
Contributor

@yuichi10 yuichi10 commented Jul 6, 2018

This PR fixes screwdriver-cd/screwdriver#1163.

When a user execute sd-step, it tries to install habitat package every time.
I fixed that by checking if a package is installed or not with hab pkg path and installing the package only when non-existent.
Note:
hab pkg path exits with zero when a package exists, otherwise non-zero.
Diff with -w option is recommended: https://github.com/screwdriver-cd/sd-step/pull/13/files?w=1

@catto catto changed the title Reduce api call fix: Reduce api call Jul 6, 2018
@catto catto merged commit afccabc into screwdriver-cd:master Jul 6, 2018
@catto catto deleted the reduce-api-call branch July 6, 2018 05:47
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.

[Enhancement] sd-step should check local hab dir first before installing
5 participants