koltyakov / gosip

⚡️ SharePoint SDK for Go
https://go.spflow.com
MIT License
140 stars 32 forks source link

api library error #32

Closed brett0701 closed 4 years ago

brett0701 commented 4 years ago

Getting the following error when getting the api module:

../../../go/src/github.com/koltyakov/gosip/api/permissions.go:199:13: invalid operation: num << perm (shift count type int64, must be unsigned integer) ../../../go/src/github.com/koltyakov/gosip/api/permissions.go:202:12: invalid operation: num << perm (shift count type int64, must be unsigned integer)

koltyakov commented 4 years ago

Hi @brett0701,

Could you please check what Go version you use?

And what platform/architecture you’re targeting the build?

brett0701 commented 4 years ago

go1.12.9

macOS Mohave v 10.14..6

brett0701 commented 4 years ago

I upgraded to go1.13.11(version we run in prod) and I was able to get it working.

koltyakov commented 4 years ago

Refactored the method. Now it works also for legacy 1.12. Not sure if it's ever needed as 1.14 and 1.15 are actual versions. Maybe in some CI/CD where the old version is installed as a prerequisite and can't be easily bumped at least to 1.13. Anyways, 1.12.9 is supported now.