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

[Bug]: mkdocs installation of configured plugins crashes #623

Open
JakobFerdinand opened this issue Jul 18, 2024 · 1 comment
Open

[Bug]: mkdocs installation of configured plugins crashes #623

JakobFerdinand opened this issue Jul 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JakobFerdinand
Copy link

JakobFerdinand commented Jul 18, 2024

Feature id and version

ghcr.io/devcontainers-contrib/features/mkdocs:2

Devcontainer base Image

mcr.microsoft.com/devcontainers/universal:2

What happened?

I used to use the mkdocs feature with the plugins property set like this:

{
	"image": "mcr.microsoft.com/devcontainers/universal:2",
	"features": {
		"ghcr.io/devcontainers-contrib/features/mkdocs:2": {
			"plugins": "mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin"
		}
	}
}

Since today, when I want to build my devcontainer pipx crashes when trying to install the plugins.
Log in the Relevant log output section.

The only way I found to not run into that problem is by setting the plugins property to an empty string and install all plugins in the postCreateCommand.

{
	"image": "mcr.microsoft.com/devcontainers/universal:2",
	"features": {
		"ghcr.io/devcontainers-contrib/features/mkdocs:2": {
			"plugins": ""
		}
	},
	"postCreateCommand": "pip3 install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin"
}

Relevant log output

#15 0.455 ===========================================================================
#15 0.455 Feature       : MkDocs (via pipx)
#15 0.455 Description   : MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation.
#15 0.455 Id            : ghcr.io/devcontainers-contrib/features/mkdocs
#15 0.455 Version       : 2.0.18
#15 0.455 Documentation : http://github.com/devcontainers-contrib/features/tree/main/src/mkdocs
#15 0.455 Options       :
#15 0.455     VERSION="latest"
#15 0.455     PLUGINS="mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin"
#15 0.455 ===========================================================================
#15 1.240 nanolayer
#15 4.761 cd /tmp/tmpkxh3b445 && chmod +x -R . && _REMOTE_USER="codespace" _REMOTE_USER_HOME="/home/codespace" PACKAGE="mkdocs" INJECTIONS="mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin" VERSION="latest" INCLUDEDEPS="false" INTERPRETER="" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-Ys0gf1z8nV/nanolayer" bash  -i  +H ./install.sh
  installed package mkdocs 1.6.0, installed using Python 3.10.13
#15 8.462   These apps are now globally available
#15 8.462     - mkdocs
#15 8.465 done! ✨ 🌟 ✨
#15 8.465 usage: pipx [-h] [--quiet] [--verbose] [--global] [--version]
#15 8.616             {install,install-all,uninject,inject,pin,unpin,upgrade,upgrade-all,upgrade-shared,uninstall,uninstall-all,reinstall,reinstall-all,list,interpreter,run,runpip,ensurepath,environment,completions}
#15 8.616             ...
#15 8.617 pipx: error: unrecognized arguments: mkdocs-material
#15 8.617 Traceback (most recent call last):
#15 8.667   File "<string>", line 1, in <module>
#15 8.667   File "nanolayer.__main__", line 50, in main
#15 8.668   File "typer.main", line 328, in __call__
#15 8.668   File "typer.main", line 311, in __call__
#15 8.668   File "click.core", line 1157, in __call__
#15 8.669   File "typer.core", line 778, in main
#15 8.669   File "typer.core", line 216, in _main
#15 8.670   File "click.core", line 1688, in invoke
#15 8.670   File "click.core", line 1688, in invoke
#15 8.670   File "click.core", line 1434, in invoke
#15 8.670   File "click.core", line 783, in invoke
#15 8.670   File "typer.main", line 683, in wrapper
#15 8.671   File "nanolayer.cli.install", line 65, in install_devcontainer_feature
#15 8.671   File "nanolayer.installers.devcontainer_feature.oci_feature_installer", line 131, in install
#15 8.671   File "nanolayer.utils.invoker", line 59, in invoke
@JakobFerdinand JakobFerdinand added the bug Something isn't working label Jul 18, 2024
@evilhamsterman
Copy link

evilhamsterman commented Oct 8, 2024

This project is not associated with the devcontainer project and appears to have been abandoned #628 . The official project has removed all devcontainer-contrib features from their listing. devcontainers/devcontainers.github.io#451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features

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

2 participants