Skip to content

fix: cli template creates binpath without --binary flag#10

Open
Deepak8858 wants to merge 1 commit into
Jacute:mainfrom
Deepak8858:fix/issue-9-cli-template-binpath
Open

fix: cli template creates binpath without --binary flag#10
Deepak8858 wants to merge 1 commit into
Jacute:mainfrom
Deepak8858:fix/issue-9-cli-template-binpath

Conversation

@Deepak8858

Copy link
Copy Markdown

This PR fixes an issue where gowncli template would generate code containing binpath and binInfo even when the --binary flag was not provided.

Changes:

  • Added HasBinary field to TemplateParams.
  • Conditionally set BinPath and HasBinary in NewTemplateCmd.
  • Updated main.go.tmpl to use HasBinary for conditional code generation.

Fixes #9

@Jacute

Jacute commented Mar 22, 2026

Copy link
Copy Markdown
Owner

@Deepak8858 Thank you for participating in project! Sorry that it took me a long time to respond for your PR.

Can you update your code for tests? Currently, not all tests are being run.
изображение

You have an old version where the tests were configured for golang version 1.25.5. It was fixed in this commit. Merge main with your branch before updating your code.

I also fixed workflows. After sending PR I can check your tests. If they pass, I will merge your PR.

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.

bug: cli template creates binpath without --binary flag

2 participants