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

Command task pr fails in dev-container #317

Closed
5 tasks done
Lafunamor opened this issue Feb 26, 2023 · 2 comments · Fixed by #486
Closed
5 tasks done

Command task pr fails in dev-container #317

Lafunamor opened this issue Feb 26, 2023 · 2 comments · Fixed by #486
Labels
bug Something isn't working

Comments

@Lafunamor
Copy link
Contributor

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

@Lafunamor Lafunamor added the bug Something isn't working label Feb 26, 2023
@hay-kot hay-kot changed the title Task pr fails in dev-container Command task pr fails in dev-container Mar 6, 2023
@icanc0
Copy link

icanc0 commented May 8, 2023

Having the same issue here.

❯ task pr
task: Task "db:generate" is up to date
task: [generate] cd backend/app/api/static && swag fmt --dir=../
task: [generate] cd backend/app/api/static && swag init --dir=../,../../../internal,../../../pkgs
2023/05/08 14:11:54 Generate swagger docs....
2023/05/08 14:11:54 Generate general API Info, search dir:../
2023/05/08 14:11:54 Generate general API Info, search dir:../../../internal
2023/05/08 14:11:54 warning: failed to get package name in dir: ../../../internal, error: execute go list command, exit status 1, stdout:, stderr:no Go files in /Users/vincent/Documents/Github/homebox/backend/internal
2023/05/08 14:11:54 Generate general API Info, search dir:../../../pkgs
2023/05/08 14:11:54 warning: failed to get package name in dir: ../../../pkgs, error: execute go list command, exit status 1, stdout:, stderr:no Go files in /Users/vincent/Documents/Github/homebox/backend/pkgs
2023/05/08 14:11:54 Generating v1.ApiSummary
2023/05/08 14:11:54 Generating v1.Build
2023/05/08 14:11:54 Generating v1.ActionAmountResult
2023/05/08 14:11:54 ParseComment error in file /Users/vincent/Documents/Github/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: Failed to run task "pr": task: Failed to run task "generate": exit status 1

steps to reproduce:

  1. run task setup
  2. run task pr
  3. issue arises

@JonathanGawrych
Copy link
Contributor

It looks like this issue reappeared when #475 was merged that removed --parseDependency

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants