Skip to content

Windows unit test cannot be compiled #1540

@qweeah

Description

@qweeah

What happened in your environment?

When compiling windows golang unit tests, got bellow error

> go test -count=1 ./...
# oras.land/oras/internal/testutils
internal\testutils\console.go:34:37: undefined: containerd.NewPty

What did you expect to happen?

The unit test should be compiled and run successfully

How can we reproduce it?

Run go test -count=1 ./... on Windows

What is the version of your ORAS CLI?

Dev branch on 5280c67

What is your OS environment?

Windows 11

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNew issues or PRs to be acknowledged by maintainers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions