From ee1da00dd306336bb966ab182042f6a1f245680c Mon Sep 17 00:00:00 2001 From: Jason Collins <47123298+jcollins-axway@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:56:32 -0700 Subject: [PATCH] INT - fix make (#179) * fix make * fix quote --- Makefile | 6 ++---- pkg/traceability/muleemitter.go | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7ec0ae7..a4e6371 100644 --- a/Makefile +++ b/Makefile @@ -57,8 +57,7 @@ build-discovery: -ldflags="-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildTime=${TIME}' \ -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildVersion=${VERSION}' \ -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildCommitSha=${COMMIT_ID}' \ - -X 'github.com/Axway/agent-sdk/pkg/cmd.SDKBuildVersion=${SDK_VERSION}' \ - -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildAgentName=MuleSoftDiscoveryAgent'" \ + -X 'github.com/Axway/agent-sdk/pkg/cmd.SDKBuildVersion=${SDK_VERSION}'" \ -o bin/discovery ./cmd/discovery/main.go @echo "discovery agent binary placed at bin/discovery" @@ -70,8 +69,7 @@ build-traceability: -ldflags="-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildTime=${TIME}' \ -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildVersion=${VERSION}' \ -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildCommitSha=${COMMIT_ID}' \ - -X 'github.com/Axway/agent-sdk/pkg/cmd.SDKBuildVersion=${SDK_VERSION}' \ - -X 'github.com/Axway/agent-sdk/pkg/cmd.BuildAgentName=MuleSoftTraceabilityAgent'" \ + -X 'github.com/Axway/agent-sdk/pkg/cmd.SDKBuildVersion=${SDK_VERSION}'" \ -o bin/traceability ./cmd/traceability/main.go @echo "traceability agent binary placed at bin/traceability" diff --git a/pkg/traceability/muleemitter.go b/pkg/traceability/muleemitter.go index 0be79c4..0d3055f 100644 --- a/pkg/traceability/muleemitter.go +++ b/pkg/traceability/muleemitter.go @@ -115,6 +115,7 @@ func (me *MuleEventEmitter) getLastRun() (string, string) { } return tStamp.(string), tNow } + func (me *MuleEventEmitter) saveLastRun(lastTime string) { me.cache.Set(CacheKeyTimeStamp, lastTime) me.cache.Save(me.cachePath)