Skip to content

allow slashes in git url parameters#35552

Merged
jbardin merged 1 commit intomainfrom
jbardin/get-git-param-slash
Aug 12, 2024
Merged

allow slashes in git url parameters#35552
jbardin merged 1 commit intomainfrom
jbardin/get-git-param-slash

Conversation

@jbardin
Copy link
Copy Markdown
Member

@jbardin jbardin commented Aug 9, 2024

Git URL refs often contain slashes, and while it's technically not correct to have unencoded slashes in the query, they were being split off and incorrectly appended to the path as a go-getter subdir. (This was likely part of the PR which pulled a lot of the behavior into the Terraform repo #34847) The behavior was definitely incorrect, and since Terraform apparently accepted unencoded slashes in query parameters in the past, we can just restore the prior behavior rather than rejecting unencoded slashes entirely.

Fixes #34554

Git url refs often contain slashes, which were incorrectly being split
and appended to the path as a go-getter subdir.
@jbardin jbardin requested a review from a team August 9, 2024 18:12
@crw crw added the enhancement label Aug 9, 2024
@jbardin jbardin merged commit 761d1d2 into main Aug 12, 2024
@jbardin jbardin deleted the jbardin/get-git-param-slash branch August 12, 2024 14:08
@github-actions
Copy link
Copy Markdown
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to reference modules with slash in ref name

3 participants