From d951d25a4d99f354a8c4e49898b820a7665f20f2 Mon Sep 17 00:00:00 2001 From: Magnus Tullberg Date: Thu, 26 Oct 2023 14:47:02 +0200 Subject: [PATCH] Change name of .debricked-call-graph to debricked-call-graph (#138) --- internal/callgraph/language/java11/job.go | 2 +- internal/upload/batch.go | 2 +- test/callgraph/maven_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/callgraph/language/java11/job.go b/internal/callgraph/language/java11/job.go index 9bce3f0f..c43b9fe4 100644 --- a/internal/callgraph/language/java11/job.go +++ b/internal/callgraph/language/java11/job.go @@ -17,7 +17,7 @@ const ( maven = "maven" gradle = "gradle" dependencyDir = ".debrickedTmpFolder" - outputName = ".debricked-call-graph" + outputName = "debricked-call-graph" ) type Job struct { diff --git a/internal/upload/batch.go b/internal/upload/batch.go index e07e6796..cbbe9c33 100644 --- a/internal/upload/batch.go +++ b/internal/upload/batch.go @@ -29,7 +29,7 @@ var ( InitScanErr = errors.New("failed to initialize a scan") ) -const callgraphName = ".debricked-call-graph" +const callgraphName = "debricked-call-graph" type uploadBatch struct { client *client.IDebClient diff --git a/test/callgraph/maven_test.go b/test/callgraph/maven_test.go index b2fc51cf..6f3106fa 100644 --- a/test/callgraph/maven_test.go +++ b/test/callgraph/maven_test.go @@ -15,7 +15,7 @@ func TestGenerateCallgraph(t *testing.T) { mavenProjectPath := filepath.Join("testdata", "mvnproj-build") tmpFolder := filepath.Join(mavenProjectPath, ".debrickedTmpFolder") targetFolder := filepath.Join(mavenProjectPath, "target") - callgraphFile := filepath.Join(mavenProjectPath, ".debricked-call-graph") + callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph") assert.NoDirExists(t, tmpFolder) assert.NoDirExists(t, targetFolder) @@ -43,7 +43,7 @@ func TestGenerateCallgraphNoBuild(t *testing.T) { mavenProjectPath := filepath.Join("testdata", "mvnproj-no-build") tmpFolder := filepath.Join(mavenProjectPath, ".debrickedTmpFolder") targetFolder := filepath.Join(mavenProjectPath, "target") - callgraphFile := filepath.Join(mavenProjectPath, ".debricked-call-graph") + callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph") assert.NoFileExists(t, callgraphFile) tmpFolderInfoBefore, tmpErr := os.Stat(tmpFolder)