Skip to content

Missing local zeroconf replacement directory causes go mod tidy to fail #1

@ihidchaos

Description

@ihidchaos

Hello ,

Thanks a lot for this Matter library—I've been really interested in it and wanted to give it a try! I'm hitting a snag when I try to run go mod tidy though.

The go.mod file has this replace line for github.com/grandcat/zeroconf pointing to ../zeroconf. But that ../zeroconf folder isn't in the repo, so go mod tidy throws this error:

❯ go mod tidy
go: github.com/backkem/matter/pkg/discovery imports
        github.com/grandcat/zeroconf: github.com/grandcat/zeroconf@v1.0.1-0.20230119201135-e4f60f8407b1: replacement directory ../zeroconf does not exist
go: github.com/backkem/matter/examples/common imports
        github.com/pion/logging tested by
        github.com/pion/logging.test imports
        github.com/stretchr/testify/assert: github.com/grandcat/zeroconf@v1.0.1-0.20230119201135-e4f60f8407b1 (replaced by ../zeroconf): reading ../zeroconf/go.mod: open /Users/guoyuchao/dev/backkem/zeroconf/go.mod: no such file or directory
go: github.com/backkem/matter/test/integration tested by
        github.com/backkem/matter/test/integration.test imports
        github.com/pion/webrtc/v4 tested by
        github.com/pion/webrtc/v4.test imports
        github.com/stretchr/testify/require: github.com/grandcat/zeroconf@v1.0.1-0.20230119201135-e4f60f8407b1 (replaced by ../zeroconf): reading ../zeroconf/go.mod: open /Users/guoyuchao/dev/backkem/zeroconf/go.mod: no such file or directory

I figure either the local ../zeroconf directory needs to be added to the repo, or maybe remove the replace if the upstream version works fine now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions