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

feature apt-get-packages fails with devpod #1043

Closed
behrica opened this issue Apr 30, 2024 · 4 comments
Closed

feature apt-get-packages fails with devpod #1043

behrica opened this issue Apr 30, 2024 · 4 comments
Assignees
Labels

Comments

@behrica
Copy link

behrica commented Apr 30, 2024

What happened?
Having this snipped in devcontainer.json

    "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
      "ppas": ["ppa:ubuntuhandbook1/emacs"],
      "packages": "emacs,rlwrap,fonts-hack"
    }

fails with error:

19:09:08 info #11 134.8 add-apt-repository -y ppa:[ppa:ubuntuhandbook1/emacs]
19:09:08 info #11 134.8 Unable to handle repository shortcut 'ppa:[ppa:ubuntuhandbook1/emacs]'
while it does work in codespaces

Local Environment:

  • DevPod Version: 0.5.4

  • Operating System: linux

  • ARCH of the OS: i386

  • Local/remote provider: docker

@behrica
Copy link
Author

behrica commented Apr 30, 2024

It is reproducible from this repo:
https://github.com/scicloj/scicloj.ml.tribuo
devpod up . on it fails as above,
while open in Codespace / VScode does work

@89luca89
Copy link
Contributor

89luca89 commented May 2, 2024

Thanks @behrica we will take a look

in the meantime, whoever wants to take a look is welcome 😄

@behrica
Copy link
Author

behrica commented May 2, 2024

I put it in its own repro:
https://github.com/behrica/emacs-clojure-devcontainer

@linear linear bot assigned 89luca89 May 8, 2024
@thecontinium
Copy link

I'm not sure of the correct syntax but If you change the definition to the below it works. I suspect the array is not being processed correctly.

"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
  "ppas": "ppa:ubuntuhandbook1/emacs",
  "packages": "emacs,rlwrap,fonts-hack"
}

This syntax also works with devcontainer cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants