Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
diag-ditaa-*
arch/manual/isa/**/riscv-isa-manual
gen
gen.*
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, wanted to talk to you about this one. I'd like to have the ability to keep old copies of the generated files in my workspace for reference. I want them ignored by Git. So, my scheme is to take the gen directory and rename it to gen. so that's why I've added gen.* in .gitignore. If you have another way of solving this, I'm open to it. This is just what I was imagining as a solution.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Derek suggested changing this to *.bak in the .gitignore. I'll do that in some future PR.

node_modules
_site
images
Expand Down
18 changes: 16 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,28 @@ else
fi

if [ "${CONTAINER_TYPE}" != "docker" -a "${CONTAINER_TYPE}" != "singularity" -a "${CONTAINER_TYPE}" != "devcontainer" ]; then
echo "BAD CONTAINER TYPE: ${CONTAINER_TYPE}"
echo "BAD CONTAINER TYPE: ${CONTAINER_TYPE}" 1>&2
exit 1
fi

if [ ! -f ${ROOT}/.container-type ]; then
echo ${CONTAINER_TYPE} > ${ROOT}/.container-type
fi

echo "Using ${CONTAINER_TYPE} environment"
print_env() {
if [ "${CONTAINER_TYPE}" == "docker" ]; then
echo "Using Docker environment"
elif [ "${CONTAINER_TYPE}" == "singularity" ]; then
echo "Using Singularity environment"
elif [ "${CONTAINER_TYPE}" == "devcontainer" ]; then
echo "Using devcontainer environment"
else
echo "Unknown container type of ${CONTAINER_TYPE}" 1>&2
exit 1
fi
}

print_env

if [ -v GITHUB_ACTIONS ]; then
echo "Running in a GitHub Action"
Expand Down
Loading