diff --git a/internal/commands/interceptor/process.go b/internal/commands/interceptor/process.go index eaa59687..9fbc7f29 100644 --- a/internal/commands/interceptor/process.go +++ b/internal/commands/interceptor/process.go @@ -83,7 +83,7 @@ func parseProcess(required bool, idFlagName, nameFlagName, instanceIDFlagName st if instanceID == "" { return fmt.Errorf(`"--%s" is specified but its related service name or id is not given`, nameFlagName) } - id = fmt.Sprintf("%x", sha256.New().Sum([]byte(fmt.Sprintf("%s_%s", instanceID, name)))) + id = fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s_%s", instanceID, name)))) } return ctx.Set(idFlagName, id)