Skip to content

Commit

Permalink
Fix typo and add code generate step to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed May 30, 2024
1 parent 7a52552 commit 0e579b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ VENDOR_DIR = vendor
get-deps: $(VENDOR_DIR)

$(VENDOR_DIR):
go generate $$(go list ./internal/pkg/mocks/...)
GO111MODULE=on go mod vendor

.PHONY: build
Expand All @@ -24,5 +25,5 @@ clean:

.PHONY: test
test: $(VENDOR_DIR)
go test -v -timeout 30s .
go test -v -timeout 30s ./...

2 changes: 1 addition & 1 deletion internal/pkg/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func findArgocdAppByManifestPathAnnotation(ctx context.Context, componentPath st
// I'll just manually log the time it takes to get the apps for now
getAppsStart := time.Now()
allRepoApps, err := appIf.List(ctx, &appQuery)
getAppsDuration := time.Since(getAppsStart).Milliseconds
getAppsDuration := time.Since(getAppsStart).Milliseconds()
log.Infof("Got %v ArgoCD applications for repo %s in %v ms", len(allRepoApps.Items), repo, getAppsDuration)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0e579b1

Please sign in to comment.