In order to avoid a nil pointer dereference when using gok get --update_all, I needed to add
if cfg.InternalCompatibilityFlags == nil {
cfg.InternalCompatibilityFlags = &config.InternalCompatibilityFlags{}
}
before InternalCompatibilityFlags is referenced in the function getGokrazySystemPackages() in file cmd/gok/cmd/get.go. This conforms with the guards in cmd/gok/cmd/update.go and cmd/gok/cmd/overwrite.go.
In order to avoid a nil pointer dereference when using
gok get --update_all
, I needed to addbefore
InternalCompatibilityFlags
is referenced in the functiongetGokrazySystemPackages()
in file cmd/gok/cmd/get.go. This conforms with the guards in cmd/gok/cmd/update.go and cmd/gok/cmd/overwrite.go.