Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DOCUMENTS 06 / go explicit target build tag filename source selection

Reconstruct which Go source files belong to an explicit target and build-tag environment.

POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-06/go-explicit-target-build-tag-filename-source-selection

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "goBuildSelection"
      ],
      "properties": {
        "goBuildSelection": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "context",
                "files",
                "include_tests"
              ],
              "properties": {
                "context": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "goos",
                    "goarch",
                    "compiler",
                    "cgo",
                    "release_minor",
                    "tool_tags",
                    "tags"
                  ],
                  "properties": {
                    "goos": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9_.]+$"
                    },
                    "goarch": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9_.]+$"
                    },
                    "compiler": {
                      "enum": [
                        "gc",
                        "gccgo"
                      ]
                    },
                    "cgo": {
                      "type": "boolean"
                    },
                    "release_minor": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 30
                    },
                    "tool_tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9_.]+$"
                      },
                      "maxItems": 32,
                      "minItems": 0
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9_.]+$"
                      },
                      "maxItems": 32,
                      "minItems": 0
                    }
                  }
                },
                "files": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "expression"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 128,
                        "minLength": 1
                      },
                      "expression": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string",
                            "maxLength": 1024,
                            "minLength": 1
                          }
                        ]
                      }
                    }
                  },
                  "maxItems": 64,
                  "minItems": 1
                },
                "include_tests": {
                  "type": "boolean"
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "selected",
                    "excluded",
                    "effective_tags"
                  ],
                  "properties": {
                    "selected": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 128,
                        "minLength": 1
                      },
                      "maxItems": 64,
                      "minItems": 0
                    },
                    "excluded": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "name",
                          "reason"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 128,
                            "minLength": 1
                          },
                          "reason": {
                            "enum": [
                              "hidden_name",
                              "not_go_source",
                              "test_file",
                              "filename_target",
                              "build_expression"
                            ]
                          }
                        }
                      },
                      "maxItems": 64,
                      "minItems": 0
                    },
                    "effective_tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9_.]+$"
                      },
                      "maxItems": 128,
                      "minItems": 0
                    }
                  }
                }
              ]
            }
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →