Skip to content

make package/.*: Error: login: failed to open browser: exec:  #75506

@yariksheptykin

Description

@yariksheptykin

I am trying to create a new custom package following these instructions:

https://edu.chainguard.dev/open-source/wolfi/building-a-wolfi-package/#building-a-package

As my package target I use php-pcov. I ripped off the configuration from #29279 and ported it to php 8.3.

Unfortunately, building the package fails due to authentication error:

make dev-container
make package/php-8.3-pcov
mkdir -p /tmp/melange-cache
Building package php-8.3-pcov with version php-8.3-pcov-1.0.12-r0 from file php-8.3-pcov.yaml
make yamlfile=php-8.3-pcov.yaml pkgname=php-8.3-pcov packages/x86_64/php-8.3-pcov-1.0.12-r0.apk
make[1]: Entering directory '/home/isheptykin/Projects/isheptykin/os'
Opening browser to https://issuer.enforce.dev/oauth?audience=apk.cgr.dev&client_id=auth0&create_refresh_token=true&exit=redirect&redirect=http%3A%2F%2Flocalhost%3A43623%2Fcallback%3Ftoken%3Dtrue%26error%3Dtrue&skip_registration=true
Error: login: failed to open browser: exec: "xdg-open,x-www-browser,www-browser": executable file not found in $PATH
failed token from apk.cgr.dev for target kernel/x86_64/APKINDEX.tar.gz
make[1]: *** [Makefile:119: kernel/x86_64/APKINDEX.tar.gz] Error 1
make[1]: Leaving directory '/home/isheptykin/Projects/isheptykin/os'
make: *** [Makefile:152: package/php-8.3-pcov] Error 2

I am able to login with chainctl auth on my host machine, and running make lib-token works alright on the host. Withing the dev-container the authentication fails as there is no browser to do the interactive login. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions