You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gto command has a --push flag which according to the docs will push a created tag.
--push - Push created tag automatically (experimental)
However, looking into the code the tag will automatically be pushed if the git repository has a remote.
This is unexpected as it is not a mentioned actions in the docs. I looked back into a older versions of gto (v0.3.5) and saw that there was similar logic, but found the logic to not be implemented/functional.
I have a github action that automatically increments the tag version when changes are pushed to a branch (prod).
This action was working with gto prior to the version 1 release. It now fails with the logs:
Created git tag '<model>@v1.0.11' that registers version
Running `git push origin <model>@v1.0.11`
❌ The command `git push origin <model>@v1.0.11` failed. Make sure your local
repository is in sync with the remote.
I am not sure why the automatic gto register push is failing; however, I would suggest that the push only happens when the --push flag is provided. An additional --auto-push flag could be created that could cover the current behavior.
Alternatively pushing could be the default behavior and a --no-push flag could be provided to prevent pushing.
The text was updated successfully, but these errors were encountered:
I've confirmed that this is a bug. Fix is coming here #417 . Sorry for the inconvenience folks. There was a lack of tests that made the last refactoring fragile a bit.
Fixes#405
We've changed the semantic of the operation during the recent migration
to `scmrepo`. The key thing is the `has_remote(reg.scm)` calls and
implementation. I think the original intention was to push automatically
when we run GTO operations on a remote repo (means we are cloning it
into a temp dir, do some op, and push the result back).
## TODO
- [x] Tests
- [x] Review CLI option description
- [x] Review docs
## Docs
Relevant docs update is here
iterative/dvc.org#4879
The gto command has a --push flag which according to the docs will push a created tag.
--push - Push created tag automatically (experimental)
However, looking into the code the tag will automatically be pushed if the git repository has a remote.
This is unexpected as it is not a mentioned actions in the docs. I looked back into a older versions of gto (v0.3.5) and saw that there was similar logic, but found the logic to not be implemented/functional.
I have a github action that automatically increments the tag version when changes are pushed to a branch (prod).
This action was working with gto prior to the version 1 release. It now fails with the logs:
I am not sure why the automatic gto register push is failing; however, I would suggest that the push only happens when the
--push
flag is provided. An additional--auto-push
flag could be created that could cover the current behavior.Alternatively pushing could be the default behavior and a
--no-push
flag could be provided to prevent pushing.The text was updated successfully, but these errors were encountered: