Segmentation violation with gok --update_all
jung-kurt opened this issue · comments
Kurt Jung commented
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.
Michael Stapelberg commented
Thanks for the report! This should now be fixed