<commit_before>{% set provider = "prometheus" %}
{% set goname = "github.com/prometheus/"+provider.lower() %}
{% set version = "2.12.0" %}

{% set name = goname.split('/')[-1] %}
{% set pkg_src = ('src/'+goname).replace("/",os.sep) %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  - folder:  {{ pkg_src }}
    url: https://{{ goname }}/archive/v{{ version }}.tar.gz
    sha256: 9bd9ae6df02777a9ba3f6f544338865861decabd02054aa64975449bd6009e5a

build:
  number: 0
  script:
    - pushd {{ pkg_src }}/cmd/{{ name }}
    - go build -v -o $GOBIN/{{ name }} -ldflags "-X main.revision=conda-forge"  # [unix]
    - go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X main.revision=conda-forge"  # [win]

requirements:
  build:
    - {{ compiler('go') }}

test:
  requires:
    - m2-bash       # [win]
    - m2-coreutils  # [win]

  commands:
    - prometheus --version

about:
  home: https://prometheus.io/
  license: Apache-2.0
  license_file: {{ pkg_src }}/LICENSE
  summary: Prometheus, a Cloud Native Computing Foundation project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.
  doc_url: https://prometheus.io/docs/introduction/overview/
  dev_url: https://github.com/prometheus/{{ name }}

extra:
  recipe-maintainers:
    - rluria14
    - adbeda
    - mwilson8
<commit_msg>add go get line to build script<commit_after>{% set provider = "prometheus" %}
{% set goname = "github.com/prometheus/"+provider.lower() %}
{% set version = "2.12.0" %}

{% set name = goname.split('/')[-1] %}
{% set pkg_src = ('src/'+goname).replace("/",os.sep) %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  - folder:  {{ pkg_src }}
    url: https://{{ goname }}/archive/v{{ version }}.tar.gz
    sha256: 9bd9ae6df02777a9ba3f6f544338865861decabd02054aa64975449bd6009e5a

build:
  number: 0
  script:
    - pushd {{ pkg_src }}/cmd/{{ name }}
    - go get -d -v {{ goname }}/cmd/...
    - go build -v -o $GOBIN/{{ name }} -ldflags "-X main.revision=conda-forge"  # [unix]
    - go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X main.revision=conda-forge"  # [win]

requirements:
  build:
    - {{ compiler('go') }}

test:
  requires:
    - m2-bash       # [win]
    - m2-coreutils  # [win]

  commands:
    - prometheus --version

about:
  home: https://prometheus.io/
  license: Apache-2.0
  license_file: {{ pkg_src }}/LICENSE
  summary: Prometheus, a Cloud Native Computing Foundation project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.
  doc_url: https://prometheus.io/docs/introduction/overview/
  dev_url: https://github.com/prometheus/{{ name }}

extra:
  recipe-maintainers:
    - rluria14
    - adbeda
    - mwilson8

{'fraction_non_alphanumeric': 0.1589095744680851, 'fraction_numerical': 0.03789893617021277, 'mean_word_length': 3.196652719665272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6317141', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1047, 'n_words': 278}