Skip to content

Add switch to skip workspace management for plugin generation#6464

Merged
luisjfdez merged 10 commits intomainfrom
task/package/skip-kiota-folder
Apr 23, 2025
Merged

Add switch to skip workspace management for plugin generation#6464
luisjfdez merged 10 commits intomainfrom
task/package/skip-kiota-folder

Conversation

@luisjfdez
Copy link
Contributor

@luisjfdez luisjfdez commented Apr 15, 2025

This PR adds a switch to skip the workspace folder (.kiota) when generating a plugin.

See #6452

The CLI add subcommand for plugin generation adds a --no-workspace flag
The npm package adds a noWorkspace parameter

baywet
baywet previously requested changes Apr 15, 2025
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

In addition to the comments, can you please:

  • add a changelog entry
  • add integration tests that the workspace DOES NOT get written upon add command when the setting is set to avoid any future regression

@github-project-automation github-project-automation bot moved this to In Progress 🚧 in Kiota Apr 15, 2025
@luisjfdez
Copy link
Contributor Author

In addition to the comments, can you please:

  • add a changelog entry
  • add integration tests that the workspace DOES NOT get written upon add command when the setting is set to avoid any future regression

currently, there are no integration tests in Kiota.Builder for plugin generation, I suggests to create and additional issue to deal with this and other scenarios in a more holistic way for greater productivity and coverage

thewahome
thewahome previously approved these changes Apr 22, 2025
@sebastienlevert
Copy link
Contributor

sebastienlevert commented Apr 22, 2025

Can we update the spec to add the --no-workspace there?

https://github.com/microsoft/kiota/blob/main/specs/cli/client-add.md

@luisjfdez luisjfdez dismissed baywet’s stale review April 22, 2025 14:55

log entry added

@luisjfdez
Copy link
Contributor Author

Can we update the spec to add the --no-workspace there?

https://github.com/microsoft/kiota/blob/main/specs/cli/client-add.md

Done, the change is only available for now for plugin, I have updated https://github.com/microsoft/kiota/blob/main/specs/cli/plugin-add.md

@luisjfdez luisjfdez requested a review from thewahome April 23, 2025 07:24
@luisjfdez luisjfdez merged commit 1535caa into main Apr 23, 2025
286 checks passed
@luisjfdez luisjfdez deleted the task/package/skip-kiota-folder branch April 23, 2025 08:14
@github-project-automation github-project-automation bot moved this from In Progress 🚧 to Done ✔️ in Kiota Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Provide an optional switch when generation is happening in Kiota to avoid creating .kiota folder.

5 participants