-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary variables from Makefiles #20620
base: main
Are you sure you want to change the base?
Remove unnecessary variables from Makefiles #20620
Conversation
1. Makefile - Remove -e option since it is unnecessary when passing variables as command line arguments to `make -f make/photon/Makefile`. (The -e option is used to override variables defined in the Makefile with environment variables.) - Remove DEVFLAG and REGISTRYVERSION from `make -f make/photon/Makefile` command line arguments since they are unused in make/photon/Makefile. - Add TRIVYFLAG to `make -f make/photon/Makefile` command line argument since it is used in make/photon/Makefile. Strictly speaking, this argument is unnecessary, but it is better to have it to explicitly indicate that make/photon/Makefile also uses this variable. - Remove the variable definitions since the following variables are unused. - CONFIGPATH - CORE_PATH - DEVFLAG - DOCKERFILEPATH_COMMON - GOBUILD - GOBUILDMAKEPATH_EXPORTER - GOBUILDPATH_EXPORTER - GOCLEAN - GOCMD - GODEP - GOFMT - GOINSTALL - GOTEST - PORTAL_PATH - PREPAREPATH - SRCPATH - ZIPCMD 2. make/photon/Makefile - Remove the variable definitions since the following variables are unused. - CORE_BINARYNAME - CORE_SOURCECODE - DOCKERFILENAME_POSTGRESQL - DOCKERFILEPATH_POSTGRESQL - DOCKERIMAGENAME_POSTGRESQL - DOCKERIMAGES - JOBSERVICEBINARYNAME - JOBSERVICESOURCECODE - POSTGRESQL - SEDCMD - SRCPATH - TOOLSPATH - WGET - Remove the variable definitions since the following variables are specified as command line arguments when executed from Makefile. - BASEIMAGENAMESPACE - IMAGENAMESPACE Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20620 +/- ##
===========================================
+ Coverage 45.36% 66.16% +20.80%
===========================================
Files 244 1048 +804
Lines 13333 114471 +101138
Branches 2719 2856 +137
===========================================
+ Hits 6049 75745 +69696
- Misses 6983 34580 +27597
- Partials 301 4146 +3845
Flags with carried forward coverage won't be shown. Click here to find out more. |
Fix make argument to be executed in the recipe for build_standalone_db_migrator. Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Sorry, I realized I forgot to fix build_standalone_db_migrator target, so I fixed it and pushed. |
@@ -21,20 +17,11 @@ DOCKERCMD=$(shell which docker) | |||
DOCKERBUILD=$(DOCKERCMD) build --no-cache | |||
DOCKERBUILD_WITH_PULL_PARA=$(DOCKERBUILD) --pull=$(PULL_BASE_FROM_DOCKERHUB) | |||
DOCKERRMIMAGE=$(DOCKERCMD) rmi | |||
DOCKERIMAGES=$(DOCKERCMD) images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep them as a default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Comprehensive Summary of your change
Makefile
Remove
-e
option since it is unnecessary when passing variables as command line arguments tomake -f make/photon/Makefile
. (The-e
option is used to override variables defined in theMakefile
with environment variables.)Remove
DEVFLAG
andREGISTRYVERSION
frommake -f make/photon/Makefile
command line arguments since they are unused inmake/photon/Makefile
.Add
TRIVYFLAG
tomake -f make/photon/Makefile
command line argument since it is used inmake/photon/Makefile
. Strictly speaking, this argument is unnecessary, but it is better to have it to explicitly indicate thatmake/photon/Makefile
also uses this variable.Remove the variable definitions since the following variables are unused.
CONFIGPATH
CORE_PATH
DEVFLAG
DOCKERFILEPATH_COMMON
GOBUILD
GOBUILDMAKEPATH_EXPORTER
GOBUILDPATH_EXPORTER
GOCLEAN
GOCMD
GODEP
GOFMT
GOINSTALL
GOTEST
PORTAL_PATH
PREPAREPATH
SRCPATH
ZIPCMD
make/photon/Makefile
Remove the variable definitions since the following variables are unused.
CORE_BINARYNAME
CORE_SOURCECODE
DOCKERFILENAME_POSTGRESQL
DOCKERFILEPATH_POSTGRESQL
DOCKERIMAGENAME_POSTGRESQL
DOCKERIMAGES
JOBSERVICEBINARYNAME
JOBSERVICESOURCECODE
POSTGRESQL
SEDCMD
SRCPATH
TOOLSPATH
WGET
Remove the variable definitions since the following variables are specified as command line arguments when executed from
Makefile
.BASEIMAGENAMESPACE
IMAGENAMESPACE
Issue being fixed
Please indicate you've done the following: