Replies: 4 comments 3 replies
-
No need to make a new file. You still can change the existed one and create a branch-less commit pointed by a tag:
You can later just amend the commit and reset the tag to fix bug in a field without a need to rewrite the master branch. |
Beta Was this translation helpful? Give feedback.
-
Hello again. This feature is getting queued up for my next round of development, which involves build reproducibility for our deployed code. Would you accept a PR as described above command that provides a |
Beta Was this translation helpful? Give feedback.
-
Hey ! Thanks for your interest in this project ! What do you think of adding a freeze parameter to the export command? Something like this ? Or you think that a separate command is necessary? Extra parameters that would be specific to the export function perhaps ? |
Beta Was this translation helpful? Give feedback.
-
I was hinted at an alternative approach for : This came from @AiVerisimilitude The only difference is this would export everything in src, while my ideal scenario was to be able to supply an input repos file. |
Beta Was this translation helpful? Give feedback.
-
I would like to improve the reproducibility of my frequent code deployments. In other tools, you can freeze the current state to a file.
Example:
pip freeze
apt list --installed
I propose a small additional command to
vcstool2
to freeze the current state.Proposed example command:
This would output the current repos tracked under vcs, except for any repos that have their
version
as abranch
, it would replace it with the commit/revisionhash
, which is globally unique.For example, if the user currently tracks their code like this:
Then, the output of
vcs freeze
would be the following, the only difference being the version ofvcstool
is now a hash.I can then save this as an artifact with the code deployment.
Later, when/if there is a bug in the field, it is easy for a developer to grab the stored list of repositories, and perform an exact rebuild of the deployment, even if there have been commits to the branches since then.
Just like
pip freeze
, one can easily pipe it to a file:vcs freeze > ros2_frozen.repos
Beta Was this translation helpful? Give feedback.
All reactions