Skip to content
Draft
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
51 changes: 51 additions & 0 deletions modules/rules_fawltydeps/0.1.0-alpha/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"""rules_fawltydeps - Bazel rules for FawltyDeps"""

module(
name = "rules_fawltydeps",
version = "0.1.0-alpha",
)

# Python dependency for running fawltydeps
bazel_dep(name = "rules_python", version = "0.40.0")

# rules_python gazelle to reuse their manifests generation
bazel_dep(name = "rules_python_gazelle_plugin", version = "1.6.3")

# Python toolchain
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.10",
)

# pip dependencies for fawltydeps
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "fawltydeps_pip",
python_version = "3.10",
requirements_lock = "//:requirements.txt",
)
use_repo(pip, "fawltydeps_pip")

# Integration tests on example repos
bazel_dep(
name = "rules_bazel_integration_test",
version = "0.34.0",
dev_dependency = True,
)

bazel_binaries = use_extension(
"@rules_bazel_integration_test//:extensions.bzl",
"bazel_binaries",
dev_dependency = True,
)
bazel_binaries.download(version_file = "//:.bazelversion")
bazel_binaries.download(version = "7.0.0")
bazel_binaries.download(version = "last_green")
use_repo(
bazel_binaries,
"bazel_binaries",
"bazel_binaries_bazelisk",
"build_bazel_bazel_.bazelversion",
"build_bazel_bazel_7_0_0",
"build_bazel_bazel_last_green",
)
11 changes: 11 additions & 0 deletions modules/rules_fawltydeps/0.1.0-alpha/patches/fixup-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -2,7 +2,7 @@

module(
name = "rules_fawltydeps",
- version = "0.1.0",
+ version = "0.1.0-alpha",
)

# Python dependency for running fawltydeps
20 changes: 20 additions & 0 deletions modules/rules_fawltydeps/0.1.0-alpha/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
bcr_test_module:
module_path: "examples/simple"
matrix:
platform: ["debian11", "macos", "ubuntu2004", "windows"]
bazel: [8.x]
tasks:
verify_targets:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- "--keep_going"
- "--config=fawltydeps"
build_targets:
#- "//client:client" # broken for demo purposes
- "//client:sidequest"
- "//libs:db"
- "//libs:utils"
- "//server:server"

9 changes: 9 additions & 0 deletions modules/rules_fawltydeps/0.1.0-alpha/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-piy3jE1DmE83I17HHtoN4s+ziiU3fbTQfielfbPtL/o=",
"patch_strip": "0",
"patches": {
"fixup-version.patch": "sha256-ryA/kPVKcKWQ5gFwGsPGyBdjQMZ9Va4EgoGCHog8PJU="
},
"strip_prefix": "rules_fawltydeps-0.1.0-alpha",
"url": "https://github.com/tweag/rules_fawltydeps/releases/download/v0.1.0-alpha/rules_fawltydeps-0.1.0-alpha.tar.gz"
}
18 changes: 18 additions & 0 deletions modules/rules_fawltydeps/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "https://github.com/tweag/rules_fawltydeps",
"maintainers": [
{
"email": "[email protected]",
"github": "layus",
"github_user_id": 632767,
"name": "Guillaume (@layus) Maudoux"
}
],
"repository": [
"github:tweag/rules_fawltydeps"
],
"versions": [
"0.1.0-alpha"
],
"yanked_versions": {}
}