Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# *******************************************************************************

# Use Dockerfile to get dependabot version bumps after new image is released
FROM ghcr.io/eclipse-score/devcontainer:v1.10.0
FROM ghcr.io/eclipse-score/devcontainer:v1.11.0
41 changes: 41 additions & 0 deletions .devcontainer/run-tool
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash

# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

# Unified entry point for running a CLI tool by name.
# Inside a container the tool is expected on PATH; outside, it is resolved via Bazel.
# See https://github.com/eclipse-score/devcontainer/tree/main/tools for further information.
#
# Do not modify this file. Its source of truth is managed by the
# SCORE devcontainer standardization policy.

set -euo pipefail

if [[ "$#" -lt 1 ]]; then
echo "Usage: $0 <tool> [args...]" >&2
exit 2
fi

tool_name="$1"
shift

if { [[ -f /.dockerenv ]] || [[ -f /run/.containerenv ]] || [[ -d /devcontainer ]]; } &&
command -v "${tool_name}" >/dev/null 2>&1; then
exec "${tool_name}" "$@"
elif command -v bazel >/dev/null 2>&1; then
exec bazel run "@score_devcontainer//tools:${tool_name}" -- "$@"
else
echo "Could not run '${tool_name}': not available on PATH in a container, and bazel was not found." >&2
exit 127
fi
2 changes: 1 addition & 1 deletion .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: 📥 Check out
uses: actions/checkout@v7
- name: 🛠️ Install pre-commit
run: pip install pre-commit rapidfuzz
run: pip install pre-commit
- name: ✅ Run pre-commit
run: pre-commit run --all-files
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ repos:
args: [--maxkb=50, --enforce-all] # increase or add git lfs if too strict
exclude: MODULE.bazel.lock

- repo: https://github.com/eclipse-score/tooling
rev: 991cc658a4627251118f8241b00ffb1a3b1f0ab7
- repo: https://github.com/eclipse-score/tools
rev: 7694bf823421b5542cd2f45239b8bdf205dbface
hooks:
- id: copyright
args: [--exclusion-file, /dev/null]

- repo: https://codeberg.org/fsfe/reuse-tool
rev: a1bb792acda6fd0724936b4ebbdbc8eceb9c0459 # v6.2.0
Expand Down
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ single_version_override(
version = "1.70.0",
)

# Provide the tools from the devcontainer to Bazel
bazel_dep(name = "score_devcontainer", version = "1.11.0", dev_dependency = True)

###############################################################################
#
# S-CORE Toolchains (DO NOT MODIFY)
Expand Down
3 changes: 2 additions & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading