github.com/cloudflare/pint
v0.87.0
#2149 most downloaded on Go modules
cloudflare/pint
What this package is like to depend on
Last release 6 days ago
17 Aug 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 208 of 210 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
388 releases · first in 2021
47 releases in the last 12 months
see the full history below
Release timeline
388 releases · Apr 2021 to Aug 2026Releases
latest 60 of 388-
v0.87.1-0.20260817201734-f7f7ce86f0d617 Aug 2026 pre-releaseNothing published for this version
-
v0.87.1-0.20260810204206-a1db69e4925310 Aug 2026 pre-releaseNothing published for this version
-
v0.87.1-0.20260807180535-75663d6b0ed107 Aug 2026 pre-releaseNothing published for this version
-
v0.87.1-0.20260805212155-4007904f4d8e05 Aug 2026 pre-releaseNothing published for this version
-
v0.87.1-0.20260727210822-4414d891846b27 Jul 2026 pre-releaseNothing published for this version
-
v0.87.1-0.20260712171700-c149b549006612 Jul 2026 pre-releaseNothing published for this version
-
v0.87.009 Jul 2026Release notes
Open source →Added
- Added support for Prometheus v3.13.0 experimental PromQL functions:
min_of(),max_of(). - rule/duplicate now also detects duplicated
alerting rules that can produce identical alerts from the same source time series. - alerts/template now validates PromQL queries
passed to thequerytemplate function, reporting syntax errors and result
labels that the query cannot produce.
Fixed
- Fixed alerts/template was missing support for
tmpltemplate function.
Release notes
Open source →Added
- Added support for Prometheus v3.13.0 experimental PromQL functions:
min_of(),max_of(). - rule/duplicate now also detects duplicated alerting rules that can produce identical alerts from the same source time series.
- alerts/template now validates PromQL queries
passed to the
querytemplate function, reporting syntax errors and result labels that the query cannot produce.
Fixed
- Fixed alerts/template was missing support for
tmpltemplate function.
- Added support for Prometheus v3.13.0 experimental PromQL functions:
-
v0.86.1-0.20260623210525-f7b64fd8021e23 Jun 2026 pre-releaseNothing published for this version
-
v0.86.1-0.20260617172519-b102cc12c5fb17 Jun 2026 pre-releaseNothing published for this version
-
v0.86.012 Jun 2026Release notes
Open source →Added
- Added promql/nan check.
Changed
- promql/vector_matching was refactored heavily
to be faster and more accurate.
Fixed
- Fixed false positive reports from promql/impossible
when functions likeabs(),clamp_min(),hour(),ln(),
histogram_quantile(), ortimestamp()wrap aggregations that already remove
labels. - Fixed a crash in promql/aggregate when
nameregexp is not set. - Fixed alerts/template not populating
$annotationsmap, causing template expansion to always return
empty values for annotation references. - Fixed rule/label not matching regex key
patterns on recording rules. - Fixed bare
# pint disable promql/seriescomments having no effect
on promql/series checks. - Fixed
pint_rule_file_ownermetric using symlink target path instead
of symlink name, making it inconsistent withpint_problemmetric. - Fixed swapped label name and URL in
promql/vector_matching error message
when both sides of a binary operation are missing a label. - Fixed false positive promql/range_query
reports when Prometheus retention flag cannot be parsed. - Fixed promql/counter not checking bare
counter metrics used without any wrapping function.
Release notes
Open source →Added
- Added promql/nan check.
Changed
- promql/vector_matching was refactored heavily to be faster and more accurate.
Fixed
- Fixed false positive reports from promql/impossible
when functions like
abs(),clamp_min(),hour(),ln(),histogram_quantile(), ortimestamp()wrap aggregations that already remove labels. - Fixed a crash in promql/aggregate when
nameregexp is not set. - Fixed alerts/template not populating
$annotationsmap, causing template expansion to always return empty values for annotation references. - Fixed rule/label not matching regex key patterns on recording rules.
- Fixed bare
# pint disable promql/seriescomments having no effect on promql/series checks. - Fixed
pint_rule_file_ownermetric using symlink target path instead of symlink name, making it inconsistent withpint_problemmetric. - Fixed swapped label name and URL in promql/vector_matching error message when both sides of a binary operation are missing a label.
- Fixed false positive promql/range_query reports when Prometheus retention flag cannot be parsed.
- Fixed promql/counter not checking bare counter metrics used without any wrapping function.
-
v0.85.004 Jun 2026Release notes
Open source →Added
- Added promql/offset check that warns when a PromQL
query uses anoffsetlarger than configured Prometheus retention. - Added support for Prometheus v3.12.0 experimental PromQL functions:
start(),end(),range(),step().
Changed
- BitBucket reporter no longer creates Code Insight annotations.
All problems are now reported as pull request comments.
Fixed
- Fixed query/cost suggesting recording rules with
incompatible label matchers. - Fixed query/cost suggesting recording rules when
the query and recording rule use different aggregation grouping
(e.g.sum by(job)vssum without(instance)).
Release notes
Open source →Added
- Added promql/offset check that warns when a PromQL
query uses an
offsetlarger than configured Prometheus retention. - Added support for Prometheus v3.12.0 experimental PromQL functions:
start(),end(),range(),step().
Changed
- BitBucket reporter no longer creates Code Insight annotations. All problems are now reported as pull request comments.
Fixed
- Fixed query/cost suggesting recording rules with incompatible label matchers.
- Fixed query/cost suggesting recording rules when
the query and recording rule use different aggregation grouping
(e.g.
sum by(job)vssum without(instance)).
- Added promql/offset check that warns when a PromQL
-
v0.84.1-0.20260603121614-0f014ebe0da803 Jun 2026 pre-releaseNothing published for this version
-
v0.84.022 May 2026Release notes
Open source →Added
- GitHub and GitLab reporters will now automatically delete outdated general
comments from previouspint ciruns.
Changed
- Reported problems will now trim more parts of the query for which the problem is
reported, to make it easier to read. - Reduced the number of low-value reports about smelly regexp selectors from the
promql/regexp check.
Release notes
Open source →Added
- GitHub and GitLab reporters will now automatically delete outdated general
comments from previous
pint ciruns.
Changed
- Reported problems will now trim more parts of the query for which the problem is reported, to make it easier to read.
- Reduced the number of low-value reports about smelly regexp selectors from the promql/regexp check.
- GitHub and GitLab reporters will now automatically delete outdated general
-
v0.83.1-0.20260519121333-737029f2bd1919 May 2026 pre-releaseNothing published for this version
-
v0.83.018 May 2026Release notes
Open source →Added
- rule/dependency check now supports
ignoreGroupMismatch
option for ignoring specific metrics when checking for cross-group
dependencies - #1795.
Changed
- Reported problems will now trim parts of the query for which the problem is reported
to make it easier to read.
Fixed
- GitHub and GitLab reporter was trying to create comments on incorrect lines.
Release notes
Open source →Added
- rule/dependency check now supports
ignoreGroupMismatchoption for ignoring specific metrics when checking for cross-group dependencies - #1795.
Changed
- Reported problems will now trim parts of the query for which the problem is reported to make it easier to read.
Fixed
- GitHub and GitLab reporters were trying to create comments on incorrect lines.
- rule/dependency check now supports
-
v0.82.312 May 2026Release notes
Open source →Fixed
- Fixed incorrect reports from promql/regexp when empty match group is used.
Release notes
Open source →Fixed
- Fixed incorrect reports from promql/regexp when empty match group is used.
-
v0.82.209 May 2026Release notes
Open source →Fixed
- rule/dependency won't report warnings when one
query uses a recording rules that produce a static value (vector(1)).
If the value is always the same the lag doesn't matter and it's a false positive.
Release notes
Open source →Fixed
- rule/dependency won't report warnings when one
query uses a recording rule that produces a static value (
vector(1)). If the value is always the same the lag doesn't matter and it's a false positive.
- rule/dependency won't report warnings when one
-
v0.82.108 May 2026Release notes
Open source →Fixed
- GitHub and GitLab reporter was trying to create comments on unmodified files, which is not allowed.
Release notes
Open source →Fixed
- GitHub and GitLab reporters were trying to create comments on unmodified files, which is not allowed.
-
v0.82.008 May 2026Release notes
Open source →Changed
- rule/dependency cross-group dependency check now
only reports problems for recording rules.
Fixed
- Fixed a panic when running
pint ci.
Release notes
Open source →Changed
- rule/dependency cross-group dependency check now only reports problems for recording rules.
Fixed
- Fixed a panic when running
pint ci.
- rule/dependency cross-group dependency check now
-
v0.81.107 May 2026Release notes
Open source →Fixed
- Fixed GitLab reporter sending invalid line position when a comment is placed
on a modified line in the diff, causing a 400 error from GitLab API. - GitHub and GitLab reporters will now correctly handle MRs between two feature branches.
Release notes
Open source →Fixed
- Fixed GitLab reporter sending invalid line position when a comment is placed on a modified line in the diff, causing a 400 error from GitLab API.
- GitHub and GitLab reporters will now correctly handle MRs between two feature branches.
- Fixed GitLab reporter sending invalid line position when a comment is placed
-
v0.81.007 May 2026Release notes
Open source →Changed
- When running
pint cipint will now usegit diffto calculate modified lines instead ofgit blame. - Broken symlinks and unreadable files in the rules directory are now reported as yaml/parse problems instead of causing a fatal error.
Fixed
- Fixed parser not handling
\r\nline endings correctly. - alerts/count check will now more accurately estimate alert counts.
- When running
-
v0.80.020 Apr 2026Release notes
Open source →Added
- Added promql/features check.
- Added group/interval check.
- rule/dependency check will now warn when a rule uses a metric produced by a recording rule from a different group, which can introduce evaluation lag.
Fixed
- promql/vector_matching check no longer reports problems that are also reported by promql/impossible.
- Fixed problem description in promql/series check for disable comments that have no effect.
- Fixed invalid suggestions from the query/cost check.
- query/cost check will now skip expressions that don't read any time series, like
scalar(),vector(),time(),pi(), or number literals.
-
v0.79.1-0.20260413210127-7b22a0e1477b13 Apr 2026 pre-releaseNothing published for this version
-
v0.79.1-0.20260317214840-738d42f1c71817 Mar 2026 pre-releaseNothing published for this version
-
v0.79.1-0.20260212091643-ae6107432e7112 Feb 2026 pre-releaseNothing published for this version
-
v0.79.004 Feb 2026Release notes
Open source →Changed
- Removed uber-go/automaxprocs as it's no longer needed with Go 1.25+.
Fixed
- Fixed a crash in rule/label - #1696.
- Fixed false positive reports from promql/impossible check.
-
v0.78.1-0.20260119111402-e5a564693bb719 Jan 2026 pre-releaseNothing published for this version
-
v0.78.1-0.20251216173438-f1f5cf45e81e16 Dec 2025 pre-releaseNothing published for this version
-
v0.78.1-0.20251209195012-343fcf95371109 Dec 2025 pre-releaseNothing published for this version
-
v0.78.001 Dec 2025Release notes
Open source →Fixed
- Fixed false positive reports from promql/impossible when
label_joinorlabel_replaceis used - #1631.
- Fixed false positive reports from promql/impossible when
-
v0.77.2-0.20251125162211-e3c758ac02b225 Nov 2025 pre-releaseNothing published for this version
-
v0.77.2-0.20251118192157-b4b1bf5517a118 Nov 2025 pre-releaseNothing published for this version
-
v0.77.117 Nov 2025 -
v0.77.1-0.20251112171212-1cce7a29a0aa12 Nov 2025 pre-releaseNothing published for this version
-
v0.77.011 Nov 2025Release notes
Open source →Added
-
The promql/impossible check will now warn about aggregations and binary operations that try to operate on labels that are already removed in the query. Example:
- record: foo expr: sum(foo) / on(cluster) sum(bar)The above tries to join two series on the
clusterlabel, butsum(...)already removed labels from the results on both sides, so there will be no such label to join on. -
The promql/impossible check will now warn about label joins using
group_left(...)andgroup_right(...)that are not possible or not used in any way.
Fixed
- For queries using binary expressions between two vectors Prometheus will remove the metric name from resulting series, pint will now also apply the same logic when checking queries.
-
-
v0.76.2-0.20251107160909-442a0c10658207 Nov 2025 pre-releaseNothing published for this version
-
v0.76.2-0.20251031163855-86ae74480c4331 Oct 2025 pre-releaseNothing published for this version
-
v0.76.2-0.20251024163019-509c49a5e8b924 Oct 2025 pre-releaseNothing published for this version
-
v0.76.2-0.20251022124120-79ce7033891e22 Oct 2025 pre-releaseNothing published for this version
-
v0.76.122 Oct 2025Release notes
Open source →Fixed
- CI comments would sometimes print the problematic query fragment twice.
-
v0.76.1-0.20251017170925-e2516526ad8b17 Oct 2025 pre-releaseNothing published for this version
-
v0.76.017 Oct 2025Release notes
Open source →Added
- Added support for
toDurationandnowtemplate functions added in Prometheus v3.6.
Fixed
- Some checks would fail to run queries against Prometheus servers if the query had comments in it.
- Added support for
-
v0.75.026 Sep 2025 -
v0.74.9-0.20250905191640-dbc19d45fa7705 Sep 2025 pre-releaseNothing published for this version
-
v0.74.803 Sep 2025Release notes
Open source →Fixed
- Fixed incorrect suggestions from query/cost for function calls with different arguments.
-
v0.74.702 Sep 2025Release notes
Open source →Fixed
- Fixed a bug in GitLab integration causing problems to fail to create comments when they are reported on deleted lines.
- Fixed incorrect suggestions from query/cost for rules joining on multiple metrics.
-
v0.74.631 Jul 2025Release notes
Open source →Fixed
- Fixed a bug in GitLab integration causing some problems to fail to create comments when files were renamed and modified.
-
v0.74.528 Jul 2025Release notes
Open source →Fixed
- Fixed incorrect suggestions generated by query/cost check.
- Fixed unmodified lines incorrectly marked as modified when running
pint ci.
-
v0.74.5-0.20250723165014-66ecf8913ce623 Jul 2025 pre-releaseNothing published for this version
-
v0.74.5-0.20250714123135-258a75f0683f14 Jul 2025 pre-releaseNothing published for this version
-
v0.74.5-0.20250714091055-a0cc0095eb6414 Jul 2025 pre-releaseNothing published for this version
-
v0.74.414 Jul 2025Release notes
Open source →Fixed
- Fixed false positive reports from promql/rate check when native histograms or summaries are used.
-
v0.74.4-0.20250703161004-d55cde62865903 Jul 2025 pre-releaseNothing published for this version
-
v0.74.4-0.20250624131605-8590dee6b1ba24 Jun 2025 pre-releaseNothing published for this version
-
v0.74.324 Jun 2025Release notes
Open source →Fixed
- Fixed false positive reports from promql/fragile check - #1466.
- Fixed incorrect reports from query/cost when multiple rules with
rate(...)were present and each had a different rate time window.
-
v0.74.223 Jun 2025Release notes
Open source →Fixed
- Fixed an issue where pint would fail to create an MR comment if GitLab API returned empty diff body.
-
v0.74.112 Jun 2025Release notes
Open source →Fixed
- Fixed incorrect suggestion from query/cost when a query uses joins or unless.
-
v0.74.010 Jun 2025Release notes
Open source →Added
- promql/fragile check will now warn about alerting rules using aggregations that might cause false positives when Prometheus restarts.
- query/cost check will now try to find queries that perform operations for which there is a recording rule, and suggest using these recording rules instead to speed up the query.
Fixed
- Improved accuracy of messages produced by the promql/impossible check.
-
v0.73.8-0.20250609083414-12952312a25d09 Jun 2025 pre-releaseNothing published for this version
-
v0.73.8-0.20250531201040-51e9dd5496f731 May 2025 pre-releaseNothing published for this version