The du folder has its own go.mod file and is therefore a separate module, which means that it cannot be updated based on existing tags.
Therefoure, go get -u github.com/ricochet2200/go-disk-usage/[email protected] results in the following error:
go get: module github.com/ricochet2200/[email protected] found, but does not contain package github.com/ricochet2200/go-disk-usage/du
As per the docs, when there are multiple modules in one repository, the tags need to indicate which module is being versioned.
In other words, you would need to add a tag called du/v1.1.2 to allow downstream packages to use the latest du module.