• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 20328535594

18 Dec 2025 06:46AM UTC coverage: 57.969% (-22.3%) from 80.295%
20328535594

Pull #22954

github

web-flow
Merge ccc9c5409 into 407284c67
Pull Request #22954: free up disk space in runner image

39083 of 67421 relevant lines covered (57.97%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/cue/subsystem.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
×
5

6
from pants.core.goals.resolves import ExportableTool
×
7
from pants.core.util_rules.external_tool import TemplatedExternalTool
×
8
from pants.engine.platform import Platform
×
9
from pants.engine.unions import UnionRule
×
10
from pants.option.option_types import ArgsListOption, SkipOption
×
11
from pants.util.strutil import help_text
×
12

13

14
class Cue(TemplatedExternalTool):
×
15
    options_scope = "cue"
×
16
    name = "CUE"
×
17
    help = help_text(
×
18
        """
19
        CUE is an open-source data validation language and inference engine with its roots in logic
20
        programming. Although the language is not a general-purpose programming language, it has
21
        many applications, such as data validation, data templating, configuration, querying, code
22
        generation and even scripting. The inference engine can be used to validate data in code or
23
        to include it as part of a code generation pipeline.
24

25
        Homepage: https://cuelang.org/
26
        """
27
    )
28
    default_version = "v0.4.3"
×
29
    default_known_versions = [
×
30
        "v0.4.3|macos_x86_64|1161254cf38b928b87a7ac1552dc2e12e6c5da298f9ce370d80e5518ddb6513d|6240316",
31
        "v0.4.3|macos_arm64 |3d84b85a7288f94301a4726dcf95b2d92c8ff796c4d45c4733fbdcc04ceaf21d|5996085",
32
        "v0.4.3|linux_x86_64|5e7ecb614b5926acfc36eb1258800391ab7c6e6e026fa7cacbfe92006bac895c|6037013",
33
        "v0.4.3|linux_arm64 |a8c3f4140d18c324cc69f5de4df0566e529e1636cff340095a42475799bf3fed|5548404",
34
    ]
35
    default_url_template = "https://github.com/cue-lang/cue/releases/download/{version}/cue_{version}_{platform}.tar.gz"
×
36
    default_url_platform_mapping = {
×
37
        "macos_arm64": "darwin_arm64",
38
        "macos_x86_64": "darwin_amd64",
39
        "linux_arm64": "linux_arm64",
40
        "linux_x86_64": "linux_amd64",
41
    }
42
    skip = SkipOption("fmt", "fix", "lint")
×
43
    args = ArgsListOption(example="--all-errors")
×
44

45
    def generate_exe(self, plat: Platform) -> str:
×
46
        return "cue"
×
47

48

49
def rules():
×
50
    return (UnionRule(ExportableTool, Cue),)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc