rocker-org / devcontainer-features

A collection of Dev Container Features.
https://rocker-project.org/images/devcontainer/features.html
MIT License
52 stars 16 forks source link

[quarto-cli] Dev container build fails with "prerelease" option #238

Closed natecostello closed 2 months ago

natecostello commented 2 months ago

I'm using vs code 1.92.2 on macOS Ventura It builds fine with "latest" I've logged out and back in "docker login ghrc.io

Here is the log where it fails:

[13386 ms] Could not resolve Feature manifest for 'ghcr.io/rocker-org/devcontainer-features/quarto-cli:prerelease'.  If necessary, provide registry credentials with 'docker login <registry>'.  
[13386 ms] Github feature.  
[13386 ms] Could not resolve Feature 'ghcr.io/rocker-org/devcontainer-features/quarto-cli:prerelease'.  Ensure the Feature is published and accessible from your current environment.  
[13388 ms] Error: ERR: Feature 'ghcr.io/rocker-org/devcontainer-features/quarto-cli:prerelease' could not be processed.  You may not have permission to access this Feature, or may not be logged in.  If the issue persists, report this to the Feature author.  

Here is the devcontainer.json:

{
    "name": "Python 3 Development Container",
    "build": {
        "dockerfile": "Dockerfile"
    },
    "features": {
        "ghcr.io/rocker-org/devcontainer-features/quarto-cli:prerelease": {
            "installChromium": true
        },
        "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
            "packages": "chromium"
        }
    },
    "customizations": {
        "vscode": {
            "extensions": [
                "dbaeumer.vscode-eslint",
                "donjayamanne.githistory",
                "albert.TabOut",
                "ms-toolsai.jupyter"
            ]
        }
    }
}
eitsupi commented 2 months ago

You should specify the version with the version option. Like this:

{
    "image": "mcr.microsoft.com/devcontainers/base:debian",
    "features": {
        "ghcr.io/rocker-org/devcontainer-features/quarto-cli:latest": {
            "version": "prerelease"
        }
    }
}