Skip to content

[BUG] Orchestrion pin v1.6.0 #732

Description

@xdie

Version of orchestrion
v1.6.0

Describe what happened:

When running orchestrion pin, the command fails with a panic due to the instrument directory being missing inside the orchestrion module path.

The error points to:

panic: resolving github.com/DataDog/dd-trace-go/orchestrion/all/v2 version in
"/Users/<user>/go/pkg/mod/github.com/!data!dog/[email protected]/instrument": 
getting GOMOD: running ["go" "env" "GOMOD"]: chdir
/Users/<user>/go/pkg/mod/github.com/!data!dog/[email protected]/instrument: 
no such file or directory

The instrument directory is not present in the v1.6.0 module, causing orchestrion pin to fail even though the rest of the setup (tool.go imports and go.mod dependencies) works correctly.

Describe what you expected:

orchestrion pin should complete successfully — updating go.mod and generating orchestrion.tool.go as intended — without requiring manual workarounds or path adjustments.

Steps to reproduce the issue:

Install orchestrion v1.6.0:

go install github.com/DataDog/[email protected]

Initialize a Go project and run:

orchestrion pin

The command panics due to a missing /instrument directory inside the orchestrion module.

The expected directory structure:

/Users//go/pkg/mod/github.com/!data!dog/[email protected]/instrument

is missing in the published module.

Workaround:

You can still successfully build and run the project using:

go build -o <output> ./cmd/<your-app>

because the dependency references (orchestrion.tool.go + github.com/DataDog/dd-trace-go/orchestrion/all/v2) are correct.
However, the orchestrion pin command remains unusable in v1.6.0.

Additional environment details:

Go version: go1.22 (reproducible also with go1.21)

macOS (ARM and Intel tested)

Project layout: standard Go module workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions