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

cdep: fix incorrect usage of strings TrimLeft #768

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

julesjcraske
Copy link
Contributor

it was trimming all characters until it reached a character not in the repo path character set. so was trimming "non" from "nonprod" as well.

@julesjcraske julesjcraske merged commit 1c2d923 into master Sep 7, 2023
5 checks passed
@julesjcraske julesjcraske deleted the cdep-fix-string-trim branch September 7, 2023 14:31
}

if changed {
shorthandPath := strings.TrimLeft(p, repoPath+"/")
filename := path.Base(p)
shorthandPath := path.Join(req.System, env, "service", filename)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bug was here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants