Search before asking
What happened
When attempting to build DevLake with the teambition plugin enabled, the Swagger documentation generation step (swag init) fails due to a missing type reference in the file scope_api.go.
Specifically, the comment annotations reference models.TeambitionRepo, but the type is either undefined or not properly exported/imported. This causes swag to fail and abort the make all process, preventing successful Docker builds or local development.
Having the following error while in the CI also:
209.8 2025/06/25 07:18:45 ParseComment error in file /app/plugins/teambition/api/scope_api.go :cannot find type definition: models.teambitionRepo
209.8 make: *** [Makefile:46: swag] Error 1
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:93
What do you expect to happen
The CI should correctly build.
How to reproduce
- Set GO_PLUGINS=teambition
- Run make all (or make swag)
- Observe the error related to missing type definition during Swagger generation
Anything else
happening since:
691b14f
Version
691b14f
Are you willing to submit PR?
Code of Conduct
Search before asking
What happened
When attempting to build DevLake with the teambition plugin enabled, the Swagger documentation generation step (swag init) fails due to a missing type reference in the file scope_api.go.
Specifically, the comment annotations reference models.TeambitionRepo, but the type is either undefined or not properly exported/imported. This causes swag to fail and abort the make all process, preventing successful Docker builds or local development.
Having the following error while in the CI also:
What do you expect to happen
The CI should correctly build.
How to reproduce
Anything else
happening since:
691b14f
Version
691b14f
Are you willing to submit PR?
Code of Conduct