From c945f4909393fcd400bf712e1509a8bbeae3814e Mon Sep 17 00:00:00 2001 From: Shawna Monero Date: Tue, 9 Apr 2024 10:29:34 -0700 Subject: [PATCH] oops forgot to delete the file --- .../adhoc_execution_params.go | 1 + .../adhocexecutionhelpers/root_helpers.go | 2 +- server/neptune/workflows/adhoc.go | 21 ------------------- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 server/neptune/workflows/adhoc.go diff --git a/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go b/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go index 2f1aa4d65..ba22b0afa 100644 --- a/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go +++ b/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go @@ -29,6 +29,7 @@ func ConstructAdhocExecParamsWithRootCfgBuilderAndRepoRetriever(ctx context.Cont opts := config.BuilderOptions{ RepoFetcherOptions: &internal_gh.RepoFetcherOptions{ CloneDepth: 1, + SimplePath: true, }, } diff --git a/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go b/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go index beeab3e13..8e38bf58a 100644 --- a/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go +++ b/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go @@ -39,7 +39,7 @@ func convertMergedProjectCfgToRoot(rootCfg *valid.MergedProjectCfg) workflows.Ro } } -func convertToTerraformRoot(root workflows.AdhocRoot) terraform.Root { +func convertToTerraformRoot(root workflows.Root) terraform.Root { return terraform.Root{ Name: root.Name, Apply: execute.Job{ diff --git a/server/neptune/workflows/adhoc.go b/server/neptune/workflows/adhoc.go deleted file mode 100644 index 5a1243976..000000000 --- a/server/neptune/workflows/adhoc.go +++ /dev/null @@ -1,21 +0,0 @@ -package workflows - -import ( - deploy "github.com/runatlantis/atlantis/server/neptune/workflows/internal/deploy/request" - "github.com/runatlantis/atlantis/server/neptune/workflows/internal/pr/request" -) - -type AdhocRepo = request.Repo -type AdhocRoot = deploy.Root -type AdhocJob = request.Job - -/* -type PRStep = request.Step -type PRPlanMode = request.PlanMode -type PRAppCredentials = request.AppCredentials -type PRRequest = pr.Request - -func PR(ctx workflow.Context, request PRRequest) error { - return pr.Workflow(ctx, request, Terraform) -} -*/