chore(proto): replace import path.

Signed-off-by: GiteaBot <teabot@gitea.io>
This commit is contained in:
GiteaBot
2022-08-17 14:25:14 +08:00
committed by Jason Song
parent 7d55fd57c9
commit 307c2c63de
6 changed files with 20 additions and 18 deletions

View File

@ -3,7 +3,7 @@ package runtime
import (
"context"
v1 "gitea.com/gitea/proto/gen/proto/v1"
runnerv1 "gitea.com/gitea/proto-go/runner/v1"
"gitea.com/gitea/act_runner/client"
"github.com/sirupsen/logrus"
@ -17,7 +17,7 @@ type Runner struct {
}
// Run runs the pipeline stage.
func (s *Runner) Run(ctx context.Context, stage *v1.Stage) error {
func (s *Runner) Run(ctx context.Context, stage *runnerv1.Stage) error {
l := logrus.
WithField("stage.build_uuid", stage.BuildUuid).
WithField("stage.runner_uuid", stage.RunnerUuid)
@ -28,7 +28,7 @@ func (s *Runner) Run(ctx context.Context, stage *v1.Stage) error {
return s.run(ctx, stage)
}
func (s *Runner) run(ctx context.Context, stage *v1.Stage) error {
func (s *Runner) run(ctx context.Context, stage *runnerv1.Stage) error {
l := logrus.
WithField("stage.build_uuid", stage.BuildUuid).
WithField("stage.runner_uuid", stage.RunnerUuid)