Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

failed to initialize build cache at /root/Library/Caches/go-build: mkdir /root: read-only file system #2

Closed
gedw99 opened this issue Mar 9, 2024 · 3 comments

Comments

@gedw99
Copy link

gedw99 commented Mar 9, 2024

If I run this using task from Terminal it works.

But when run from task-ui it fails.

Not quite sure what's going on yet...

I am NOT running inside docker BTW.
Does this automatically invoke docker ?

go version go1.22.1 darwin/arm64

Task-UI:

task: [hot] go build -o ./webui_bin cmd/webui/main.go
failed to initialize build cache at /root/Library/Caches/go-build: mkdir /root: read-only file system
task: Failed to run task "hot": exit status 1

Taskfile.yml:

# https://taskfile.dev

version: "3"

interval: 100ms

vars:
  NAME: "webui"
  BIN_NAME: "{{.NAME}}_bin"
  VERSION:
    sh: cat library/package.json| jq -r .version

  hot:
    desc: Server hot reload

    sources:
      - "**/*.go"
      - "webui/static/**/*"
      - "{{.NAME}}/static/**/*"
    
    cmds:
      #- go mod tidy
      - go build -o ./{{.BIN_NAME}} cmd/{{.NAME}}/main.go
      - ./{{.BIN_NAME}}


  default:
    deps:
      - hot
    silent: false
@titpetric
Copy link
Owner

Task-ui only invokes task, task then invokes go build. If go build is failing, may be an actual permission issue? List the folder permission bits and check the user task-ui is running as?

@gedw99
Copy link
Author

gedw99 commented Mar 26, 2024

@titpetric

thanks for the followup.. It's a really outstanding tool. I really want to use this in my OPS.

go build in fine. No problems there.

I suspect that task.ui assumes your running inside docker ? The READM does say "Task UI is meant for Docker environments"

I wonder how much work it would be to make this work with and without docker ?

@gedw99
Copy link
Author

gedw99 commented Mar 26, 2024

am closing this because the other issue is closer to the problem I think...

#3

@gedw99 gedw99 closed this as completed Mar 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants