fixup deps
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
79e4051c74
commit
98c7b22d6b
@ -225,7 +225,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
||||
wTitle.Reset()
|
||||
wBody.Reset()
|
||||
|
||||
fmt.Printf("update %s from %s to %s\n", path, mod.Module.Version, mod.Version)
|
||||
logger.Infof(ctx, "update %s from %s to %s\n", path, mod.Module.Version, mod.Version)
|
||||
newref := plumbing.NewHashReference(plumbing.ReferenceName(fmt.Sprintf("refs/heads/pkgdash/go_modules/%s-%s", path, mod.Version)), headRef.Hash())
|
||||
|
||||
if err = repo.Storer.SetReference(newref); err != nil {
|
||||
@ -267,13 +267,17 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
||||
logger.Fatalf(ctx, "failed to run go mod tidy: %s err: %v", out, err)
|
||||
}
|
||||
|
||||
logger.Infof(ctx, "worktree add go.mod")
|
||||
if _, err = wtree.Add("go.mod"); err != nil {
|
||||
logger.Fatalf(ctx, "failed to add file: %v", err)
|
||||
}
|
||||
|
||||
logger.Infof(ctx, "worktree add go.sum")
|
||||
if _, err = wtree.Add("go.sum"); err != nil {
|
||||
logger.Fatalf(ctx, "failed to add file: %v", err)
|
||||
}
|
||||
|
||||
logger.Infof(ctx, "worktree commit")
|
||||
_, err = wtree.Commit(wTitle.String(), &git.CommitOptions{
|
||||
Author: &object.Signature{
|
||||
Name: "gitea-actions ",
|
||||
|
Loading…
Reference in New Issue
Block a user