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

[gittag] Use spec.path instead of working dir #1102

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

enrichman
Copy link
Contributor

Fix #1101

The spec.path value was updated with the workingDir if not specified, but still the working directory was used.

Fixes updatecli#1101 

The `spec.path` value was updated with the `workingDir` if not specified, but still the working directory was used.
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for the fix!

@dduportal dduportal added source resource-gittag Resource of kind Git Tag bug Something isn't working labels Jan 18, 2023
@dduportal dduportal enabled auto-merge (squash) January 18, 2023 14:09
@loispostula
Copy link
Contributor

Would not that break scm capability of gittag, as in that case gt.spec.Path will be empty whereas workingDir will be the path of the scm repo?

@enrichman
Copy link
Contributor Author

enrichman commented Jan 18, 2023

Would not that break scm capability of gittag, as in that case gt.spec.Path will be empty whereas workingDir will be the path of the scm repo?

The check done before will prevent this, because is updating the gt.spec.Path as the workingDir if empty:

if len(gt.spec.Path) == 0 && len(workingDir) > 0 {
	gt.spec.Path = workingDir
}

@dduportal dduportal merged commit 7c41122 into updatecli:main Jan 18, 2023
@enrichman
Copy link
Contributor Author

@dduportal do you know when this could be released? 🙂

I would like to try it out, and close an issue that we have!

@enrichman enrichman deleted the patch-1 branch January 19, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resource-gittag Resource of kind Git Tag source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gittag spec.path is not working
3 participants