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

fix: use BIC_OVERWRITE when cping static/ too #21

Merged
merged 7 commits into from
Jul 27, 2024
Merged

Conversation

Pinjasaur
Copy link
Owner

@Pinjasaur Pinjasaur commented Jul 26, 2024

closes #19

Initially tried to use cp with --no-clobber/-n to fail if trying to copy a file over that already exists. But, depending on the OS the behavior isn't consistent, particularly Ubuntu which is what I use for the Dockerfile base along with the CI runner.

I pivoted to using cp --interactive-ly and echoing in n so it would fail.

Also: bumped a few different versions of things.

@Pinjasaur Pinjasaur marked this pull request as ready for review July 26, 2024 20:51
bic
Comment on lines +373 to +374
# shellcheck disable=SC2216
echo n | cp "${args[@]}" "${SRC_DIR}"/static/. "${DEST_DIR}"
Copy link
Owner Author

Choose a reason for hiding this comment

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

don't love this, but wasn't able to immediately come up with another way to accomplish it https://www.shellcheck.net/wiki/SC2216

Comment on lines +18 to +19
PANDOC_VERSION: 3.2.1
BATS_VERSION: 1.11.0
Copy link
Owner Author

Choose a reason for hiding this comment

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

it's been a couple years...


jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
# in sync with Dockerfile
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
Copy link
Owner Author

Choose a reason for hiding this comment

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

forgot to bump this when I bumped the Dockerfile 🙃

@Pinjasaur
Copy link
Owner Author

@mfossen if you're up for a review I'd appreciate the 👀

Copy link
Contributor

@mfossen mfossen left a comment

Choose a reason for hiding this comment

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

LGTM

@Pinjasaur Pinjasaur merged commit 8d2d588 into master Jul 27, 2024
2 checks passed
@Pinjasaur Pinjasaur deleted the overwrite branch July 27, 2024 04:17
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.

Hook BIC_OVERWRITE into copying static files
2 participants