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

bzr (no such package) #636

Open
rijulsudhir opened this issue Nov 15, 2021 · 1 comment
Open

bzr (no such package) #636

rijulsudhir opened this issue Nov 15, 2021 · 1 comment

Comments

@rijulsudhir
Copy link

rijulsudhir commented Nov 15, 2021

On running fn -v build-server -t rijulsudhir/fn-api-ext
it is showing

Building image rijulsudhir/fn-api-ext 
FN_REGISTRY:  127.0.0.1:5000
Current Context:  distributed-fn
Sending build context to Docker daemon  3.072kB
Step 1/11 : FROM golang:1-alpine AS build-env
 ---> 3a38ce03c951
Step 2/11 : RUN apk --no-cache add build-base git bzr mercurial gcc
 ---> Running in 7815735ce714
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  bzr (no such package):                                                                  
    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

build can be completed by changing FROM golang:1-alpine AS build-env to FROM golang:1-alpine3.11 AS build-env in the generated dockerfile in the temp folder and building with docker build.

As per https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10000 it seems like bzr package has been removed in the latest version.

@rijulsudhir
Copy link
Author

rijulsudhir commented Nov 20, 2021

If anyone else face the same issue, you can install cli using below command
curl -LSs https://raw.githubusercontent.com/rijulsudhir/fn-1-cli/master/install | sh
This is just a temporary solution until the official fix is available.
(you can check out the modifications made at https://github.com/rijulsudhir/fn-1-cli)

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

No branches or pull requests

1 participant