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

charmcraft pack -o fails: FileNotFoundError #1930

Open
barrettj12 opened this issue Sep 30, 2024 · 0 comments
Open

charmcraft pack -o fails: FileNotFoundError #1930

barrettj12 opened this issue Sep 30, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@barrettj12
Copy link

Bug Description

charmcraft pack does not seem to work when provided with the -o option to control the output directory. It fails with the following cryptic message: charmcraft internal error: FileNotFoundError(2, 'No such file or directory').

To Reproduce

  1. Checkout https://github.com/juju/juju
  2. Run charmcraft pack -p ./testcharms/charms/lxd-profile -o ./testcharms/charms

Environment

OS: Ubuntu 22.04.5 LTS
Charmcraft 3.2.1 installed from snap

charmcraft.yaml

type: "charm"
bases:
  - build-on:
      - name: "ubuntu"
        channel: "20.04"
        architectures: ["amd64", "arm64"]
    run-on:
      - name: "ubuntu"
        channel: "22.04"
        architectures:
          - amd64
          - arm64
          - s390x
      - name: "ubuntu"
        channel: "20.04"
        architectures:
          - amd64
          - arm64
          - s390x
      - name: "ubuntu"
        channel: "18.04"
        architectures:
          - amd64
          - arm64
          - s390x
      - name: "ubuntu"
        channel: "16.04"
        architectures:
          - amd64
          - arm64
          - s390x
parts:
  tiny-bash:
    plugin: dump
    source: .
    prime:
      - README
      - config.yaml
      - hooks
      - icon.svg
      - lxd-profile.yaml
      - metadata.yaml

Relevant log output

$ charmcraft pack -p ./testcharms/charms/lxd-profile -o ./testcharms/charms
WARNING: Charmcraft does not validate that charms with multiple given architectures are architecture agnostic.                                                                                                       
charmcraft internal error: FileNotFoundError(2, 'No such file or directory')                              
Failed to execute charmcraft in instance.                                                                 
Full execution log: '/home/jordan/.local/state/charmcraft/log/charmcraft-20240930-095541.119122.log'
@barrettj12 barrettj12 added the Bug Something isn't working label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant