개발 잡부/블록체인
SPDX-License-Identifier 이슈
금붕어 송인호
2022. 4. 1. 14:22
728x90
개요
코드 최상단에 'SPDX-License-Identifier'가 없을 경우에
경고로 표시된다.
SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
보면 배포 전에 라이센스를 표기하라는 소리다.
해결 방안
배포 전에 소스코드 최상단에 다음의 코드를 넣는다.
// SPDX-License-Identifier: UNLICENSED
...
보다시피 라이센스가 없다는 표시다.
만약 라이센스가 있다면, 다음의 페이지에서 찾아서 넣자.
IDs - Software Package Data Exchange (SPDX)
The examples below are for a language that uses // as its comment delimiter. // SPDX-License-Identifier: MIT The file is under the MIT license. // SPDX-License-Identifier: EPL-1.0+ The file is under the Eclipse Public License version 1.0, or any late
spdx.dev