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

ERRO failed to build package: unable to build guest: unable to lock image configuration: unable to lock packages to a consistent version: #1780

Open
ihavespoons opened this issue Feb 11, 2025 · 0 comments

Comments

@ihavespoons
Copy link

ihavespoons commented Feb 11, 2025

I have built a custom package using melange and I am attempting to test it locally. The package builds fine, but when I attempt to another package that references this one locally it fails with the above error.

Full error here:
2025/02/11 21:13:05 ERRO failed to build package: unable to build guest: unable to lock image configuration: unable to lock packages to a consistent version: map[appl-dependencies@local:[ (arm64)]]

package:
  name: appl-dependencies
  version: 0.1.0
  epoch: 2
  description: Dependencies and assets for the rails application
  target-architecture:
    - aarch64

environment:
  contents:
    keyring:
      - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub

    repositories:
      - https://packages.wolfi.dev/os

    packages:
      - wolfi-base

      # Core dependencies
      - ruby-3.1==3.1.6
      - ruby3.1-bundler
      - ruby-3.1-dev==3.1.6
      - postgresql-13 
      - postgresql-13-dev

      # Gem compilation dependencies 
      - git
      - autoconf
      - bison
      - build-base
      - bzip2-dev
      - ca-certificates-bundle
      - expat-dev
      - gdbm-dev
      - jemalloc-dev
      - libffi-dev
      - linux-headers
      - mpdecimal-dev
      - ncurses-dev
      - oniguruma-dev
      - openssl-dev
      - readline-dev
      - sqlite-dev
      - xz-dev
      - zlib-dev
      - bash
  
  environment:
      LANG: "C.UTF-8"
      BUNDLE_PATH: "/appl-dependencies/vendor/bundle"
      BUNDLE_WITHOUT: "test:development"
      ENABLE_RUBYWMQ: "true"
      BUNDLE_RETRY: "3" 
      BUNDLE_DEPLOYMENT: "true" 
      BUNDLE_JOBS: "4"
      
pipeline:
  - name: install-gems
    runs: | 
      cp  .ruby-version Gemfile* "${{targets.destdir}}/"
      bundle config && bundle && rm -rf /usr/local/bundle/cache /root/.bundle
      bundle clean --force
      bundle config && DEPENDENCIES_NEXT=1 bundle && rm -rf /usr/local/bundle/cache /root/.bundle
      find /appl-dependencies/vendor/bundle/ -type d -name 'aarch64-linux-musl' -exec rm -rf {} +
      cp -r /appl-dependencies "${{targets.destdir}}/"

I have included the repo like the the below in another local package that I am building when attempting to build this it prompts the error:

environment:
  contents:
    keyring:
      - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
    repositories:
      - https://packages.wolfi.dev/os
      - "@local packages/melange"

    packages:
      - appl-dependencies@local
      - nodejs-16==16.13.0
      - yarn==1.22.5      
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