mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
- Added devcontainer configuration based on Ubuntu 24.04 - Added GitHub Actions workflow for devcontainer testing - Update cSpell configuration to ingore spelling in devcontainer configs - Update pre-commit hooks to exclude cSpell.json because pre-commit fails for that file due to json with comments format - Fix filename for cSpell config in vscode settings - Two tests in `test_dd.rs` are now skipped if /dev/sda1 is not available, which is the case in devcontainer - Update check for existing gnu clone in build-gnu.sh, not checking the existence of the directory but the presence of the .git directory. This allows us to have the directly as a volume mount in devcontainer - Remove temporary file `g` after use in build-gnu.sh
50 lines
1.6 KiB
JSON
50 lines
1.6 KiB
JSON
{
|
|
"name": "uutils-devcontainer",
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/rust:1":
|
|
{
|
|
"version": "latest",
|
|
"profile": "default",
|
|
"components": "llvm-tools-preview"
|
|
}
|
|
},
|
|
"onCreateCommand": {
|
|
"install pre-commit hooks": "pre-commit install",
|
|
"update permissions for gnu coreutils volume": "sudo chown vscode:vscode ${containerWorkspaceFolder}/../gnu"
|
|
},
|
|
"mounts": [
|
|
{
|
|
"source": "devcontainer-gnu-coreutils-${devcontainerId}",
|
|
"target": "${containerWorkspaceFolder}/../gnu",
|
|
"type": "volume"
|
|
}
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"streetsidesoftware.code-spell-checker",
|
|
"foxundermoon.shell-format",
|
|
"ms-vscode.cpptools"
|
|
],
|
|
"settings": {
|
|
"rust-analyzer.check.command": "clippy",
|
|
"rust-analyzer.debug.engine": "ms-vscode.cpptools",
|
|
"rust-analyzer.debug.engineSettings": {
|
|
"cppdbg": {
|
|
"miDebuggerPath": "rust-gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|