I have my project in which I use go dep to import the Gobot package. When trying to build however, I get this:
cannot use r (type *raspi.Adaptor) as type "github.com/lucavallin/hytta-agent/vendor/gobot.io/x/gobot/drivers/i2c".Connector in argument to "github.com/lucavallin/hytta-agent/vendor/gobot.io/x/gobot/drivers/i2c".NewGrovePiDriver:
*raspi.Adaptor does not implement "github.com/lucavallin/hytta-agent/vendor/gobot.io/x/gobot/drivers/i2c".Connector (wrong type for GetConnection method)
have GetConnection(int, int) ("gobot.io/x/gobot/drivers/i2c".Connection, error)
want GetConnection(int, int) ("github.com/lucavallin/hytta-agent/vendor/gobot.io/x/gobot/drivers/i2c".Connection, error)
The types are ok and the example is provided by the people behind Gobot, but it seems go is not happy because it's expecting an object coming from the "absolute repo" instead of my vendor directory.
Any idea how I can fix this?