Skip to content

Problem with devcontainer #13

@Jean-MichelBROCHARD

Description

@Jean-MichelBROCHARD

@SBatais
Commit : I have the code from commit 3f94fd5

When I launch VSCode, connect to devcontainer, run command make run I get:

ERROR Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: go.mod requires go >= 1.24.0 (running go 1.23.11; GOTOOLCHAIN=local) 

To pass this error, I upgraded devcontainer image to mcr.microsoft.com/devcontainers/go:1-1.24-bookworm.
When running make run, I now have error :

2025-08-28T10:27:00Z    fatal   logging/logging.go:91   Failed to get config for cluster ID 'kubo2 (dev)': stat /tmp/.kube/config: no such file or directory
github.com/okdp/okdp-server/internal/common/logging.Fatal
        /workspaces/okdp-server/internal/common/logging/logging.go:91
github.com/okdp/okdp-server/internal/integrations/k8s/client.GetClients.func1
        /workspaces/okdp-server/internal/integrations/k8s/client/client.go:68
sync.(*Once).doSlow
        /usr/local/go/src/sync/once.go:78
sync.(*Once).Do
        /usr/local/go/src/sync/once.go:69
github.com/okdp/okdp-server/internal/integrations/k8s/client.GetClients
        /workspaces/okdp-server/internal/integrations/k8s/client/client.go:59
github.com/okdp/okdp-server/internal/integrations/k8s.NewK8S
        /workspaces/okdp-server/internal/integrations/k8s/k8s.go:32
github.com/okdp/okdp-server/internal/services.NewClusterService
        /workspaces/okdp-server/internal/services/cluster.go:30
github.com/okdp/okdp-server/internal/controllers.ProjectController
        /workspaces/okdp-server/internal/controllers/project_controller.go:35
github.com/okdp/okdp-server/internal/controllers.(*Group).RegisterControllers
        /workspaces/okdp-server/internal/controllers/register.go:43
github.com/okdp/okdp-server/internal/server.NewOKDPServer
        /workspaces/okdp-server/internal/server/server.go:54
github.com/okdp/okdp-server/cmd.runOkdpServer
        /workspaces/okdp-server/cmd/root.go:58
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1019
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071
github.com/okdp/okdp-server/cmd.Execute
        /workspaces/okdp-server/cmd/root.go:49
main.main
        /workspaces/okdp-server/main.go:8
runtime.main
        /usr/local/go/src/runtime/proc.go:283
exit status 1
make: *** [Makefile:80: gorun] Error 1

Do you have any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions