Repository navigation
fix: impede que RCLONE_VERSION quebre o rclone version no build - #81
Merged
Merged
Conversation
O ARG RCLONE_VERSION é exportado como variável de ambiente nos RUN, e o rclone lê RCLONE_* como flags: RCLONE_VERSION=1.75.0 vira --version=1.75.0, que não é booleano, e o rclone version aborta com exit 1. O problema ficava escondido pelo cache de build e aparece em qualquer build sem cache.
Deploying opencnpj with
|
| Latest commit: |
01efd6f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e47ec5b1.opencnpj.pages.dev |
| Branch Preview URL: | https://flaviodesouza-fix-rclone-ver.opencnpj.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
Qualquer build da imagem sem cache falha no passo de instalação do rclone:
O
ARG RCLONE_VERSION(introduzido em c6baa26) é exportado como variável de ambiente nosRUN. O rclone interpreta variáveisRCLONE_*como flags, entãoRCLONE_VERSIONvira--version=1.75.0, e orclone versionaborta com exit 1. Os builds anteriores passavam porque reaproveitavam essa camada do cache.Correção
Remover a variável só na chamada de verificação:
env -u RCLONE_VERSION rclone version. O nome do ARG continua o mesmo, e o runtime não é afetado, porque o ARG não persiste no ambiente do container.Validação
rclone v1.75.0e conclui.