Error Unsatisfiable Constraints Bzr Missing Required Worldbzr

Outro dia durante um treinamento eu acabei recebendo um bom erro quando tentei efetuar o build de uma imagem docker que usava o Alpine, que em geral é sempre uma escolha quando vamos fazer algo em Golang .

O motivo é que eles removeram o pacote bzr que acaba gerando o erro.

Em um site que visitei ele apresentou um erro mas o que eu tive durante o processo foi este aqui.

Step 1/9 : FROM golang:alpine AS build-env
---> 1de1afaeaa9a
Step 2/9 : RUN apk --no-cache add build-base git bzr mercurial gcc
---> Running in acb6b625a250
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
bzr (missing):
required by: world[bzr]
The command '/bin/sh -c apk --no-cache add build-base git bzr mercurial gcc' returned a non-zero code: 1

Para resolver o problema é só remover o bzr do seu dockerfile em uma linha como esta aqui.

RUN apk --no-cache add build-base git bzr mercurial gcc

E com esta modificação no seu Dockerfile você vai conseguir fazer o build da sua imagem sem problemas.

comments powered by Disqus