Skip to content

community/dockviz: switch to go modules

Kevin Daudt requested to merge kdaudt/aports:dockviz-modernize into master

From go 1.16, go modules are enabled by default, and govendor has been deprecated by the author.

Even though it still works, the dependencies for dockviz were outdated, which prevents this from being built on mips64. Specifically, github.com/docker/docker@v17.12.0-ce-rc1.0

pkg/system/stat_linux.go:11:3: cannot use s.Rdev (type uint32) as type uint64 in field value

This was fixed in docker 20.10.4.

The easiest way to fix this by ignoring the shipped vendor dir, and initialized the modules from scratch with go mod init dockviz. Using that, it just builds without issue.

Note that this updates all dependencies to newer versions

Merge request reports