Skip to content

Cannot run go targets #637

@cornbuddy

Description

@cornbuddy

Here's what I'm trying to do. I have the following file in the root dir of monorepo:

config_version = 7

[Discover]
    application_dirs = ["services"]
    search_depth = 1

In the services repository leaves a golang service with the following app.toml:

name = "peer-provisioner"

includes = [
    "{{ .Root }}/baur-includes/go_tasks.toml#fmt",
    "{{ .Root }}/baur-includes/go_tasks.toml#vet",
    "{{ .Root }}/baur-includes/go_tasks.toml#build",
    "{{ .Root }}/baur-includes/go_tasks.toml#test",
    "{{ .Root }}/baur-includes/docker_tasks.toml#buildx",
]

The problem is that when I run any of go tasks, I see this error:

❯ baur run "*.build"
Evaluating status of tasks:

ERROR: peer-provisioner.build: evaluating task status failed: Rel: can't make $GOMODCACHE/golang.org/x/sys@v0.25.0/unix/affinity_linux.go relative to /home/cornbuddy/code/ahova/ahova-vpn

This happens both on my local nixos machine, and on github as well:
Image

What do I do wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions