Skip to content

Commit d4fd207

Browse files
committed
Add SPDX identifiers to all source code files
- Add note to docs about lack of semver compatibility - Ensure integration test expectations are up to date
1 parent 6761837 commit d4fd207

File tree

7 files changed

+24
-7
lines changed

7 files changed

+24
-7
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ jobs:
111111
node-version: 16
112112
expected-family: glibc
113113
expected-version: 2.34
114-
- name: Fedora 38 / Node.js 18
115-
container: fedora:38
114+
- name: Fedora 39 / Node.js 18
115+
container: fedora:39
116116
node-version: 18
117117
expected-family: glibc
118-
expected-version: 2.36.9000
118+
expected-version: 2.37.9000
119119
- name: OpenSUSE 15.1 / Node.js 10
120120
container: opensuse/leap:15.1
121121
node-version: 10
@@ -150,7 +150,7 @@ jobs:
150150
container: ghcr.io/void-linux/void-linux:latest-thin-x86_64
151151
node-version: 16
152152
expected-family: glibc
153-
expected-version: 2.32
153+
expected-version: 2.36
154154
- name: Void musl / Node.js 16
155155
container: ghcr.io/void-linux/void-linux:latest-thin-x86_64-musl
156156
node-version: 16
@@ -163,8 +163,8 @@ jobs:
163163
yum module disable -y nodejs || true
164164
curl -sL https://rpm.nodesource.com/setup_${{ matrix.node-version }}.x | bash -
165165
yum install -y git nodejs
166-
- name: Install Node.js (Fedora 38)
167-
if: contains(matrix.container, 'fedora:38')
166+
- name: Install Node.js (Fedora 39)
167+
if: contains(matrix.container, 'fedora:39')
168168
run: dnf install -y git nodejs
169169
- name: Install Node.js (OpenSUSE)
170170
if: contains(matrix.container, 'opensuse')

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Currently supports detection of GNU glibc and MUSL libc.
88
Provides asychronous and synchronous functions for the
99
family (e.g. `glibc`, `musl`) and version (e.g. `1.23`, `1.2.3`).
1010

11+
Version numbers are not guaranteed to be semver-compliant.
12+
1113
For previous v1.x releases, please see the
1214
[v1](https://github.com/lovell/detect-libc/tree/v1) branch.
1315

@@ -147,7 +149,7 @@ if (isNonGlibcLinuxSync()) { ... }
147149

148150
## Licensing
149151

150-
Copyright 2017, 2022 Lovell Fuller
152+
Copyright 2017 Lovell Fuller and others.
151153

152154
Licensed under the Apache License, Version 2.0 (the "License");
153155
you may not use this file except in compliance with the License.

index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017 Lovell Fuller and others.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
export const GLIBC: 'glibc';
25
export const MUSL: 'musl';
36

lib/detect-libc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017 Lovell Fuller and others.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
'use strict';
25

36
const childProcess = require('child_process');

lib/process.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017 Lovell Fuller and others.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
'use strict';
25

36
const isLinux = () => process.platform === 'linux';

test/integration.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017 Lovell Fuller and others.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
'use strict';
25

36
const { familySync, versionSync } = require('../');

test/unit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017 Lovell Fuller and others.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
'use strict';
25

36
const test = require('ava');

0 commit comments

Comments
 (0)