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

ModuleSourceRemote String now considers query string (#31250) #31636

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

fatahfattah
Copy link
Contributor

@fatahfattah fatahfattah commented Aug 12, 2022

This fixes an issue in the String() for ModuleSourceRemote in which it does not consider query strings (if present). Before this fix, any subdirectory would simply be appended to the ModuleSourceRemote.Package instead of inserting it between the root package and any query parameters.

Related: #31250

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 12, 2022

CLA assistant check
All committers have signed the CLA.

@crw
Copy link
Contributor

crw commented Aug 12, 2022

Thanks for this submission. Although I cannot commit to having this PR reviewed at this time, we acknowledge your contribution and appreciate it!

@crw crw added the bug label Aug 12, 2022
@crw
Copy link
Contributor

crw commented Aug 22, 2022

Hi @fatahfattah, if you could please write one or more tests for this change (even simple tests will be fine), we can get this reviewed. Thanks again for your submission!

@fatahfattah
Copy link
Contributor Author

Hi @crw I added a few tests, please let me know if they are okay or if you require some changes. I noticed there was no separate testing suite for parsing the ModuleSourceRemote so I added that as well.

@crw
Copy link
Contributor

crw commented Aug 25, 2022

The team member who is going to review this is on vacation, but we'll make sure to review this as soon as he is back. Thanks!

@apparentlymart
Copy link
Contributor

Thanks for working on this @fatahfattah!

This implementation looks good to me, and so I'm going to merge it now.

@apparentlymart apparentlymart merged commit 8a31f0a into hashicorp:main Aug 31, 2022
@github-actions
Copy link
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
Contributor

github-actions bot commented Oct 1, 2022

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 Oct 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants