Skip to content

Conversation

@ianbotsf
Copy link
Contributor

@ianbotsf ianbotsf commented Mar 7, 2025

Issue #, if available:

(none)

Description of changes:

Previously, kat was installed in $PWD which tends to be the path into which repos will be cloned, causing the existing contents to be deleted. To improve resilience and allow kat to be installed before source code is checked out, this PR changes the kat install dir to $HOME/kat. The unzipped binary path is still added to $PATH/$GITHUB_PATH as before so existing workflows should be unaffected.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ianbotsf ianbotsf requested a review from a team March 7, 2025 18:26
echo "Creating directory for kat tool at $kat_dir"
mkdir -p "$kat_dir"
pushd "$kat_dir"
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Why pushd instead of cd?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh force of habit. In this case I could just use cd instead since I'm not using popd.

@ianbotsf ianbotsf merged commit a78edcd into main Mar 7, 2025
5 checks passed
@ianbotsf ianbotsf deleted the chore-install-kat-outside-pwd branch March 7, 2025 23:07
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.

3 participants