From 286f41ddcb79eb4635c5fe5bcc711607570fdd51 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Fri, 16 Jan 2026 13:00:04 +0100 Subject: pkg/aflow: support setting a custom repository For situations where the user wants to reproduce bugs against a different repository than mainline. --- pkg/aflow/flow/patching/base_commit.go | 4 ++++ pkg/aflow/flow/patching/patching.go | 1 + 2 files changed, 5 insertions(+) (limited to 'pkg/aflow/flow/patching') diff --git a/pkg/aflow/flow/patching/base_commit.go b/pkg/aflow/flow/patching/base_commit.go index f49aba3d6..9ae848aec 100644 --- a/pkg/aflow/flow/patching/base_commit.go +++ b/pkg/aflow/flow/patching/base_commit.go @@ -14,6 +14,7 @@ var baseCommitPicker = aflow.NewFuncAction("base-commit-picker", pickBaseCommit) type baseCommitArgs struct { // Can be used to override the selected base commit (for manual testing). FixedBaseCommit string + FixedRepository string } type baseCommitResult struct { @@ -41,6 +42,9 @@ func pickBaseCommit(ctx *aflow.Context, args baseCommitArgs) (baseCommitResult, KernelRepo: baseRepo, KernelCommit: args.FixedBaseCommit, } + if args.FixedRepository != "" { + res.KernelRepo = args.FixedRepository + } if args.FixedBaseCommit != "" { return res, nil } diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go index 856962e6c..ab3394f4e 100644 --- a/pkg/aflow/flow/patching/patching.go +++ b/pkg/aflow/flow/patching/patching.go @@ -29,6 +29,7 @@ type Inputs struct { // Use this fixed based kernel commit (for testing/local running). FixedBaseCommit string + FixedRepository string } type Outputs struct { -- cgit mrf-deployment