-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go vet generic type error and go test [build failed] on stmutil pkg #5
Comments
That's very peculiar. I tried a bunch of theories and can't see why. I'm also not able to reproduce. I think I did see this problem early on with go1.19 before it was released. |
Turns out this issue is due to |
@ucwong here is an alternate line of fixes, let me know your thoughts: https://github.com/anacrolix/stm/tree/immutable-v0.4.0. Based on the change in constraints on map keys, I'm not sure updating to v0.4.0 is going to be plausible if this is still in use from anacrolix/dht. It certainly doesn't pass one of the tests that uses a set of
|
@anacrolix I think update to latest version and follow the constrains on the Map like var define should be the reasonable way, if we can't abandon immutable dependency right now. And the future Golang version may be also strict in Map like vars defined. Issues about |
I don't quite understand. For now you may find it easiest to progress without updating immutable, until something is figured out. |
yes, just implement the missing func of interface used. Is this OK for merging #7 |
Are you able to pass all the tests in anacrolix/stm, with immutable v0.4.0, with your changes? |
benbjohnson/immutable@v0.3.0...v0.4.0 |
I'm happy to take a PR that updates to v0.3.0 if you like (and ensuring it works with anacrolix/dht). I suspect you may want to undo some of the recent changes you made? |
@anacrolix #8 revert pre-pr |
Yes, i do |
No worries, thanks @datewu. As I mentioned above, |
This should be fixed by 32174bf. |
Very strange, github ci marks
go vet ./...
andgo test
fails, while i'm pretty sure i change no stm/stmutil pkg dependency.Then i found out
go build
works on my machine, butgo vet ./...
andgo test
fails like the github ci:Both local machine and ci machine's go version are go 1.19.2.
This github action may provide you more info.
The text was updated successfully, but these errors were encountered: