Skip to content

Fix local test config path and quote build-local output#411

Open
Aniket-pd wants to merge 1 commit into
microcks:masterfrom
Aniket-pd:fix/local-test-and-build-paths
Open

Fix local test config path and quote build-local output#411
Aniket-pd wants to merge 1 commit into
microcks:masterfrom
Aniket-pd:fix/local-test-and-build-paths

Conversation

@Aniket-pd
Copy link
Copy Markdown

This fixes two small issues that show up when working on the CLI locally.

The first is in cmd/context_test.go. TestDeleteContext was writing to ./testdata/local.config, which fails when that directory is missing. This change switches the test to t.TempDir() so it stays self-contained and does not depend on repository state.

The second is in make build-local. The build output path was not quoted, so it breaks when the checkout path contains spaces. This updates the target to create the output directory first and quote the -o path.

I used the following checks locally:

  • go test ./...
  • make build-local

Both pass from a checkout located in a path with spaces.

@github-actions
Copy link
Copy Markdown

👋 @Aniket-pd

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

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.

1 participant