-
Notifications
You must be signed in to change notification settings - Fork 48
Package step dependencies #647
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
Package step dependencies #647
Conversation
So far, dependencies named in the "depends" section are only available during the build step. Sometimes recipes only need to gather results from other packages. For this case, it is nice to have the dependencies available in the package step too. The "packageDepends" boolean attribute optionally enables access to all dependencies in the package step. Fixes BobBuildTool#645.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #647 +/- ##
=======================================
Coverage 88.95% 88.95%
=======================================
Files 50 50
Lines 16051 16058 +7
=======================================
+ Hits 14278 14285 +7
Misses 1773 1773 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@icedieler @rhubert @sbixl Any thoughts on this? Basically, you can now write: depends:
- ...
packageDepends: True
packageScript: |
for i in "{@:2}" ; do
...
doneI figured that my original idea with a fine-grained |
|
I think having all dependencies in the package step set is sufficient. I assume |
Indeed, this is the case. Just like in the build step, the dependencies start at
You can have that even today. Even in the sandbox, the checkout step is accessible for the package step. The reason is that we used checkoutSCM:
...
buildScript: |
ln -sf "$1" src
packageScript: |
rsync "$1/src/" .
Yes, just like for the build step. |
|
I know this make-a-symlink-pointing-to-the-sources way. I just thought it might be easier to read / less to write if we could get rid of this and have a direct access to the checkoutStep. checkoutSCM:
...
packageScript: |
rsync $CHECKOUT_DIR/ . |
|
Hmm, this is unfortunately not easily possible. The problem is that |
|
Fine for me - was just an idea. |
|
The only use case I can think of right now is the one Ralf already mentioned. Fine for me too. |
|
Thanks for the feedback. 👍 |
Implements #645.