Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Command task pr fails in dev-container #317

@Lafunamor

Description

@Lafunamor

First Check

  • This is not a feature request
  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the documentation, with the integrated search.
  • I already read the docs and didn't find an answer.

Homebox Version

main

What is the issue you are experiencing?

When executing task pr the task fails with the following error message

node ➜ /workspaces/homebox (add-currentcy-chf) $ task pr
task: [db:generate] cd backend/internal/ && go generate ./... \
--template=./data/ent/schema/templates/has_id.tmpl

task: [generate] cd backend/app/api/static && swag fmt --dir=../
task: [generate] cd backend/app/api/static && swag init --dir=../,../../../internal,../../../pkgs
2023/02/26 12:42:57 Generate swagger docs....
2023/02/26 12:42:57 Generate general API Info, search dir:../
2023/02/26 12:42:57 Generate general API Info, search dir:../../../internal
2023/02/26 12:42:57 warning: failed to get package name in dir: ../../../internal, error: execute go list command, exit status 1, stdout:, stderr:no Go files in /workspaces/homebox/backend/internal
2023/02/26 12:42:57 Generate general API Info, search dir:../../../pkgs
2023/02/26 12:42:57 warning: failed to get package name in dir: ../../../pkgs, error: execute go list command, exit status 1, stdout:, stderr:no Go files in /workspaces/homebox/backend/pkgs
2023/02/26 12:42:57 Generating v1.ApiSummary
2023/02/26 12:42:57 Generating v1.Build
2023/02/26 12:42:57 Generating v1.ActionAmountResult
2023/02/26 12:42:57 ParseComment error in file /workspaces/homebox/backend/app/api/handlers/v1/v1_ctrl_assets.go :cannot find type definition: repo.PaginationResult[repo.ItemSummary]
task: Failed to run task "pr": task: Failed to run task "generate": exit status 1

task setup was used before to install dependencies.

How can the maintainer reproduce the issue?

setup the dev-container on a fresh environment use task setup then try task pr

Deployment

Docker (Windows)

Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions