eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

Unable to build using latest version from master #673

Closed KMatuszak closed 7 months ago

KMatuszak commented 7 months ago
18.61 # github.com/eclipse/paho.mqtt.golang
18.61 /go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.4.4-0.20240326192155-b7215e44fc8e/filestore.go:168:15: cannot use os.ReadDir(store.directory) (value of type []fs.DirEntry) as fileInfos value in assignment
ERROR: failed to solve: process "/bin/sh -c go build" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.
MattBrittan commented 7 months ago

Apologies; I accepted PR #65 without testing because it appeared simple (made the mistake of assuming the creator had tested it). I'm not currently using this library myself (moved to the V5 client) so did not pick up the issue after that.

Commit #fe38f80 should resolve this.

KMatuszak commented 7 months ago

Now it works as it should, thank you!