VOL-4836 - Cosmetic edits to trigger a sanity check build.
Makefile
--------
o Replace inlined rm -fr calls with make builtin $(RM) -r.
pkg/events/common.go
pkg/flows/flow_utils_test.go
pkg/grpc/client.go
pkg/kafka/common.go
pkg/platform/platform_test.go
vendor/go.etcd.io/etcd/embed/etcd.go
vendor/github.com/coreos/etcd/client/doc.go
vendor/github.com/grpc-ecosystem/go-grpc-middleware/doc.go
vendor/github.com/prometheus/client_golang/prometheus/doc.go
------------------------------------------------------------
o Update copyright notice in source to trigger a jenkins job.
Change-Id: Ib679a56436d141571082cf000acc5fefc3cd7c88
diff --git a/Makefile b/Makefile
index 63d0051..13b5d0d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright 2016 the original author or authors.
+# Copyright 2016-2022 Open Networking Foundation (ONF) and the ONF Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -48,10 +48,10 @@
local-protos:
@mkdir -p python/local_imports
ifdef LOCAL_PROTOS
- rm -rf vendor/github.com/opencord/voltha-protos
+ $(RM) -r vendor/github.com/opencord/voltha-protos
mkdir -p vendor/github.com/opencord/voltha-protos/v5/go
cp -r ${LOCAL_PROTOS}/go/* vendor/github.com/opencord/voltha-protos/v5/go
- rm -rf python/local_imports/voltha-protos
+ $(RM) -r python/local_imports/voltha-protos
mkdir -p python/local_imports/voltha-protos/dist
cp ${LOCAL_PROTOS}/dist/*.tar.gz python/local_imports/voltha-protos/dist/
endif
@@ -80,7 +80,7 @@
lint: lint-mod
sca:
- @rm -rf ./sca-report
+ @$(RM) -r ./sca-report
@mkdir -p ./sca-report
@echo "Running static code analysis..."
@${GOLANGCI_LINT} run --deadline=4m --out-format junit-xml ./... | tee ./sca-report/sca-report.xml
@@ -97,9 +97,11 @@
clean: distclean
-distclean:
- rm -rf ./sca-report ./tests
+distclean sterile:
+ $(RM) -r ./sca-report ./tests
mod-update:
${GO} mod tidy
${GO} mod vendor
+
+# [EOF]