Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Adding safety check to workspace add #879

Merged

Conversation

henriquemoraeszup
Copy link
Contributor

Signed-off-by: Henrique Moraes henrique.moraes@zup.com.br

Description

If a user tries to add a workspace with a trailing separator, it breaks the autobuild feature when mapping the workspace to the .rit directory

How to verify it

Run rit add workspace, add a trailing separator on the path (i.e: /my/repo/), run a formula, edit, and run again. Autobuild should work normally

Changelog

Fixing bug when adding trailing separator to workspace

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
@henriquemoraeszup henriquemoraeszup added the 🪲 bug Report a bug encountered while operating Ritchie label Mar 3, 2021
@henriquemoraeszup henriquemoraeszup self-assigned this Mar 3, 2021
@henriquemoraeszup henriquemoraeszup linked an issue Mar 3, 2021 that may be closed by this pull request
@brunasilvazup brunasilvazup added the ✔️ ready-for-review ready for review label Mar 3, 2021
Copy link
Contributor

@brunasilvazup brunasilvazup left a comment

Choose a reason for hiding this comment

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

👍

@henriquemoraeszup
Copy link
Contributor Author

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Mar 3, 2021

👌 Merged branch hm/workspace-add-safety into qa

@henriquemoraeszup
Copy link
Contributor Author

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Mar 4, 2021

👌 Merged branch hm/workspace-add-safety into qa

@henriquemoraeszup
Copy link
Contributor Author

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Mar 4, 2021

👌 Merged branch hm/workspace-add-safety into qa

@henriquemoraeszup henriquemoraeszup merged commit 2bc1e3c into ZupIT:master Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Report a bug encountered while operating Ritchie ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autobuild does not work for workspaces with trailing separator
2 participants