Skip to content

Conversation

@tmck-code
Copy link
Owner

@tmck-code tmck-code commented Nov 12, 2025

There was a subtle annoying bug that was causing duplicate cowfiles to not be skipped as intended in the dockerfile build

The existing cows.tar.gz didn't have this issue, but this file is just an artefact to aid those who want to build the tool but can't run docker (e.g. in termux)

Changes

  1. I've fixed the bug so that the docker image builds correctly
  2. adjust the DEBUG behaviour of the Makefile build/docker task.
    Now you can build in debug mode with:
    DEBUG=1 make build/docker
  3. Quite a few updates to the workflow steps, mainly running them with the root user inside the docker container to avoid permission errors

- Pass ENV var from host command line
  > docker build with build arg
  > dockerfile build arg
  > dockerfile env var from build arg
  > env var detected by png_convert

Now you can run the build/docker task in debug mode with:

`DEBUG=1 make build/docker`
currently this is only skipping duplicate cowfiles if debug is true,
which previously was never thanks to some bugs when handling the args.

now
- always skip duplicate cowfiles
- and if in debug mode, log a message
@tmck-code tmck-code marked this pull request as ready for review November 12, 2025 12:08
to mitigate the error

```
2025/11/12 12:25:13 mkdir build/assets: permission denied
```
to mitigate the error

```
./build/scripts/build_bin.sh: line 14: pokesay.1: Permission denied
```
and run in debug mode, currently getting a failure but it's not clear
why
@tmck-code tmck-code merged commit 4a7b81e into master Nov 12, 2025
1 check passed
@tmck-code tmck-code deleted the skip-duplicate-cowfiles-bugfix branch November 12, 2025 12:46
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.

2 participants