Skip to content

Commit 1c76915

Browse files
authored
chore(notices): use matching cases for workspace crates skip (#1125)
* chore(notices): use matching cases for workspace crates skip * docs: remove opamp-rs from third party notices
1 parent a859a0a commit 1c76915

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

THIRD_PARTY_NOTICES.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,11 +1273,6 @@ Distributed under the following license(s):
12731273
Distributed under the following license(s):
12741274

12751275
* MIT
1276-
* Apache-2.0
1277-
## opamp-client <ssh://git@github.com/newrelic/opamp-rs.git?tag=0.0.31>
1278-
1279-
Distributed under the following license(s):
1280-
12811276
* Apache-2.0
12821277
## openssl-probe <https://crates.io/crates/openssl-probe>
12831278

@@ -1462,11 +1457,6 @@ Distributed under the following license(s):
14621457

14631458
Distributed under the following license(s):
14641459

1465-
* Apache-2.0
1466-
## proto <ssh://git@github.com/newrelic/opamp-rs.git?tag=0.0.31>
1467-
1468-
Distributed under the following license(s):
1469-
14701460
* Apache-2.0
14711461
## quote <https://crates.io/crates/quote>
14721462

THIRD_PARTY_NOTICES.md.tmpl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ or by e-mailing [open-source@newrelic.com](mailto:open-source@newrelic.com).
1212
For any licenses that require the disclosure of source code, the source code
1313
can be found at https://github.com/newrelic/newrelic-agent-control.
1414
{% for dep, licenseObj in dependencies %}
15-
{%- if dep is containing("newrelic_agent_control") %}{% continue %}{% endif -%}
16-
{%- if dep is containing("resource-detection") %}{% continue %}{% endif -%}
17-
{%- if dep is containing("fs") %}{% continue %}{% endif -%}
18-
{%- if dep is containing("nr-auth") %}{% continue %}{% endif -%}
19-
{%- if dep is containing("config-migrate") %}{% continue %}{% endif -%}
15+
{%- if dep is matching("newrelic_agent_control") %}{% continue %}{% endif -%}
16+
{%- if dep is matching("resource-detection") %}{% continue %}{% endif -%}
17+
{%- if dep is matching("fs") %}{% continue %}{% endif -%}
18+
{%- if dep is matching("config-migrate") %}{% continue %}{% endif -%}
19+
{# The next two dependencies are NR projects that share the same license. So not "third parties" #}
20+
{%- if dep is matching("nr-auth") %}{% continue %}{% endif -%}
21+
{%- if dep is matching("opamp-rs") %}{% continue %}{% endif -%}
2022
## {{ dep | split(pat=" ") | first }} <{{ dep | split(pat=" ") | last }}>
2123

2224
Distributed under the following license(s):

0 commit comments

Comments
 (0)