oras-project / oras

OCI registry client - managing content like artifacts, images, packages
https://oras.land
Apache License 2.0
1.52k stars 181 forks source link

Windows unit test cannot be compiled #1540

Closed qweeah closed 1 week ago

qweeah commented 1 week ago

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 5280c67fcef9e1029d539aef03370a31e5df839a

What is your OS environment?

Windows 11

Are you willing to submit PRs to fix it?