File globbing for Ignore Missing Files (#3744)

This commit is contained in:
JackHicks02 authored and GitHub committed 2025-11-03 17:09:17 -06:00
1 parent 6d38d24f3c
commit 690745cb13
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \ --var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
ARG MC_HELPER_VERSION=1.50.3 ARG MC_HELPER_VERSION=1.50.4
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION} ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
# used for cache busting local copy of mc-image-helper # used for cache busting local copy of mc-image-helper
ARG MC_HELPER_REV=1 ARG MC_HELPER_REV=1
@@ -285,7 +285,7 @@ Some modpacks come with world/save data via a worlds file and/or the overrides p
## Ignore missing files ## Ignore missing files
Some mods use temporary files from the modpack and delete them when finished. Others will patch themselves and "disable" the original mod jar, such as gregtech. In order to avoid the installer from detecting the absent file(s) and re-installing, those files can be ignored by passing a comma or newline delimited list to `CF_IGNORE_MISSING_FILES`. Some mods use temporary files from the modpack and delete them when finished. Others will patch themselves and "disable" the original mod jar, such as gregtech. In order to avoid the installer from detecting the absent file(s) and re-installing, those files can be ignored by passing a comma, newline delimited list, or a file globbing pattern to `CF_IGNORE_MISSING_FILES`.
!!! hint !!! hint
@@ -302,6 +302,7 @@ Some mods use temporary files from the modpack and delete them when finished. Ot
environment: environment:
CF_IGNORE_MISSING_FILES: | CF_IGNORE_MISSING_FILES: |
mods/gregtech-2.6.2-beta.jar mods/gregtech-2.6.2-beta.jar
mods/*.jar
``` ```
@@ -36,7 +36,7 @@ Instead of auto resolving, a specific version of modpack file can be specified b
## Ignore missing files ## Ignore missing files
Some mods, such as [MCInstance Loader](https://modrinth.com/mod/mcinstance-loader), use temporary files from the modpack and delete them when finished. In order to avoid the installer from detecting the absent file(s) and re-installing, those files can be ignored by passing a comma or newline delimited list to `MODRINTH_IGNORE_MISSING_FILES`. Some mods, such as [MCInstance Loader](https://modrinth.com/mod/mcinstance-loader), use temporary files from the modpack and delete them when finished. In order to avoid the installer from detecting the absent file(s) and re-installing, those files can be ignored by passing a comma, newline delimited list or, a file globbing pattern to `MODRINTH_IGNORE_MISSING_FILES`.
!!! example !!! example
@@ -45,6 +45,7 @@ Some mods, such as [MCInstance Loader](https://modrinth.com/mod/mcinstance-loade
environment: environment:
MODRINTH_IGNORE_MISSING_FILES: | MODRINTH_IGNORE_MISSING_FILES: |
config/mcinstanceloader/pack.mcinstance config/mcinstanceloader/pack.mcinstance
mods/*.jar
``` ```
## Excluding files ## Excluding files