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

feat!: Service per dir #6

Merged
merged 3 commits into from
Jun 12, 2023
Merged

feat!: Service per dir #6

merged 3 commits into from
Jun 12, 2023

Conversation

erezrokah
Copy link
Member

Summary

Follow up to #5.
At the moment all clients are generated under the services package, which means that if there are overlapping client names from different mocked packages their names will collide.
This PR puts each service clients in their own directory and package. The directory and package names are decided by looking at the longest common prefix of clients and removing it from the import path.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@@ -9,6 +9,8 @@ import (
"testing"

"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration/v2"
resourcesarmmanagedapplications "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications"
Copy link
Member Author

@erezrokah erezrokah Jun 12, 2023

Choose a reason for hiding this comment

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

Before this PR, we were taking the last part of the import part, which means resources/armmanagedapplications and solutions/armmanagedapplications overlapped

@erezrokah erezrokah requested a review from hermanschaaf June 12, 2023 08:45
@erezrokah erezrokah added the automerge Add to automerge PRs once requirements are met label Jun 12, 2023
@kodiakhq kodiakhq bot merged commit 12795c8 into main Jun 12, 2023
@kodiakhq kodiakhq bot deleted the feat/service_per_dir branch June 12, 2023 12:10
@cq-bot cq-bot mentioned this pull request Jun 12, 2023
kodiakhq bot pushed a commit that referenced this pull request Jun 12, 2023
🤖 I have created a release *beep* *boop*
---


## [0.3.0](v0.2.1...v0.3.0) (2023-06-12)


### ⚠ BREAKING CHANGES

* Service per dir ([#6](#6))
* Support multiple clients in the same package ([#5](#5))

### Features

* Service per dir ([#6](#6)) ([12795c8](12795c8))
* Support generic output type ([#1](#1)) ([f8dc681](f8dc681))
* Support multiple clients in the same package ([#5](#5)) ([db0fd3c](db0fd3c))
* Support packages versions greater than v1 ([#4](#4)) ([19193a6](19193a6))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met breaking feat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants