Skip to content
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

chore(deps): install dev tools and split if more repos #5528

Merged
merged 5 commits into from Dec 20, 2022

Conversation

lukidzi
Copy link
Contributor

@lukidzi lukidzi commented Dec 19, 2022

  • Link to docs PR or issue --
  • Link to UI issue or PR --
  • Is the issue worked on linked? --
  • The PR does not hardcode values that might break projects that depend on kuma (e.g. "kumahq" as a image registry) --
  • The PR will work for both Linux and Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS --
  • Unit Tests --
  • E2E Tests --
  • Manual Universal Tests --
  • Manual Kubernetes Tests --
  • Do you need to update UPGRADE.md? --
  • Does it need to be backported according to the backporting policy? --
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

Signed-off-by: Łukasz Dziedziak <lukidzi@gmail.com>
@lukidzi lukidzi requested review from a team, lahabana and michaelbeaumont and removed request for a team December 19, 2022 18:10
Signed-off-by: Łukasz Dziedziak <lukidzi@gmail.com>
Signed-off-by: Łukasz Dziedziak <lukidzi@gmail.com>
tools/dev/install-dev-tools.sh Outdated Show resolved Hide resolved
@lahabana
Copy link
Contributor

Why is this change required now and wasn't before? This sort of information should be in the commit message.

Previously code was placed directly in Makefile and thanks to this we didn't
have to pass TOOLS_DEPS_DIRS as a parameter to the script. When in another repository
we are adding to env TOOLS_DEPS_DIRS another folder to scam it the value that enters the scripts is
split by space which bash later recognizes as 2 separate parameters. That caused the other dir to be treated as GOOS.

Signed-off-by: Łukasz Dziedziak <lukidzi@gmail.com>
Copy link
Contributor

@michaelbeaumont michaelbeaumont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to dismiss this if not true but can't we just quote TOOLS_DEPS_DIRS in mk/dev.mk and use spaces?

	$(TOOLS_DIR)/dev/install-dev-tools.sh $(CI_TOOLS_BIN_DIR) $(CI_TOOLS_DIR) "$(TOOLS_DEPS_DIRS)" $(TOOLS_DEPS_LOCK_FILE) $(GOOS) $(GOARCH)

Should be better than using , separator if the variable is known to be an array...
But then again it also doesn't matter either way 😀

Signed-off-by: Łukasz Dziedziak <lukidzi@gmail.com>
@lukidzi
Copy link
Contributor Author

lukidzi commented Dec 20, 2022

Feel free to dismiss this if not true but can't we just quote TOOLS_DEPS_DIRS in mk/dev.mk and use spaces?

	$(TOOLS_DIR)/dev/install-dev-tools.sh $(CI_TOOLS_BIN_DIR) $(CI_TOOLS_DIR) "$(TOOLS_DEPS_DIRS)" $(TOOLS_DEPS_LOCK_FILE) $(GOOS) $(GOARCH)

Should be better than using , separator if the variable is known to be an array... But then again it also doesn't matter either way 😀

Looks like it works changed :)

@lukidzi lukidzi merged commit dfb84fa into kumahq:master Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants