X Tutup
Skip to content

fix(golang): keep files like changelogs, version, ...#247

Open
rubenhoenle wants to merge 1 commit intomainfrom
fix/go-keep-root-files
Open

fix(golang): keep files like changelogs, version, ...#247
rubenhoenle wants to merge 1 commit intomainfrom
fix/go-keep-root-files

Conversation

@rubenhoenle
Copy link
Member

bug only occured when compat layer was disabled for the generated service

Description

This fixes a bug where the Go SDK generator removes the files like CHANGELOG.md, VERSION, NOTICE.txt.

Bug only occurs for services which don't have a compatibility layer generated.

See e.g. the new VPN SDK module: stackitcloud/stackit-sdk-go#5855

Testing instructions

Verify the old Go SDK generator behavior

  1. Checkout the latest main branch of the STACKIT SDK generator
  2. Run make download-oas
  3. Run make generate-go-sdk
  4. Navigate to some service which doesn't have a compatibility layer generated (e.g. cd sdk-repo-updated/services/vpn). There should be a git diff (the files like CHANGELOG.md, VERSION, NOTICE.txt are gone)

Verify the new Go SDK generator behavior

  1. Checkout this bugfix branch
  2. Run make download-oas
  3. Run make generate-go-sdk
  4. Navigate to some service which doesn't have a compatibility layer generated (e.g. cd sdk-repo-updated/services/vpn). There should be no git diff (which means the files like CHANGELOG.md, VERSION, NOTICE.txt are still present as intended).

bug only occured when compat layer was disabled for the generated service
@rubenhoenle rubenhoenle requested a review from a team as a code owner March 10, 2026 17:50
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.

1 participant

X Tutup