-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add verb for tracking and staging source changes in workspace #428
Conversation
Signed-off-by: ruffsl <[email protected]>
Signed-off-by: ruffsl <[email protected]>
Signed-off-by: ruffsl <[email protected]>
Beside the question regarding the general approach mentioned in colcon/colcon-package-selection#44 (comment) I don't see a reason why this verb should be part of |
I don't think there should be anything preventing that. This was just a quick proof of concept, and there isn't yet a separate repo to host a draft of this kind of verb and task extension. I was just going with what was stated earlier in the discussion of this feature:
Is there a separate extension in the colcon ecosystem that I could use as a reference that implements both a verb and a task? |
Based on the context of the question I am not sure if that even makes sense here. Why would you need different tasks to implement To answer the question independent of the context: Maybe colcon-bundle? Most extensions really focus on one aspect only - a new verb or a task to an existing extension - and therefore only contain one of the two, e.g.:
But both should be orthogonal and you should be able to just put them together in the same package. |
Like I said, I'm not sure if a task is being used as intended, I just used it as a hack so I can feed jobs an extension that can hashdir: colcon-core/colcon_core/verb/stage.py Line 173 in a70e83d
colcon-core/colcon_core/verb/stage.py Lines 201 to 204 in a70e83d
Thus the hardcoded |
Could you create a new repo on the colcon org so I have something to fork and target PRs to?
You didn't seem convinced of the verb audit, and I'd like to avoid hash or checksum, as we could have the tool just as well check git for diff changes rather than always using hashdir or deephash. Would package name |
Got it. This concept makes sense for the
I suggest you create a repo under your username for prototyping and development. That allows you to iterate without me having to be in the loop (especially since I am quite out of the loop of colcon nowadays). We can transfer the repository to the
Naming is obviously hard 😉 Imo both - For transparency to the user I think a verb to not only show which which packages have changed since the last manual invocation but also why. I don't have a specific proposal. Ultimately you should choose what you want - I shouldn't be the BDFL. Maybe reach out to a bigger audience to get ideas / feedback (or after prototyping with some name before releasing)? With the above comment about additional verbs in mind maybe two-level (like
I agree with the general idea to avoid terms derived from implementation details which could very well change in the future. That being said I don't think using |
* Stage subverb template from colcon metadata * Update subverb template * Stage ListMetadataSubverb as template * Update subverb template * Create capture task submodule * Stage PythonStageTask as template from colcon/colcon-core#428 * Refactor snapshot capture task * Stage StageVerb as template from colcon/colcon-core#428 * Stage refactor * Rename file * Stage working task * Stage template from dirhash * Stage WIP on git task * Change to markdown * Fix linter errors
Closing in favor of ruffsl/colcon-cache#12 . |
Related: