fnproject / cli

CLI tool for fnproject.
https://fnproject.io
Apache License 2.0
132 stars 66 forks source link

bzr (no such package) #636

Open rijulsudhir opened 3 years ago

rijulsudhir commented 3 years ago

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 commented 2 years ago

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)