From 47bd131f154e94540fe6d5a4f4ea3e589312467c Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Thu, 6 Feb 2020 12:54:07 +0100 Subject: [PATCH] add copyright headers to yml files (#4407) We seem to have forgotten about them in the copyright scripts. CHANGELOG_BEGIN CHANGELOG_END --- .hlint.yaml | 4 ++++ .mergify.yml | 4 ++++ azure-cron.yml | 3 +++ azure-pipelines.yml | 3 +++ ci/build-unix.yml | 4 ++++ ci/build-windows.yml | 4 ++++ ci/report-end.yml | 4 ++++ ci/report-start.yml | 4 ++++ ci/tell-slack-failed.yml | 4 ++++ compiler/damlc/daml-ide-core/dlint.yaml | 4 ++++ compiler/damlc/ide-debug-driver/sample-config.yaml | 4 ++++ dev-env/bin/dade-copyright-headers | 2 ++ dev-env/dotfiles/stylish-haskell.yaml | 4 ++++ .../quickstart/template-root/da-skeleton.yaml | 4 ++++ docs/source/migrate/foo-1.0.0/daml.yaml | 4 ++++ docs/source/migrate/foo-2.0.0/daml.yaml | 4 ++++ docs/source/migrate/foo-upgrade-2.0.0/daml.yaml | 4 ++++ language-support/hs/bindings/examples/nim/package.yaml | 4 ++++ language-support/hs/bindings/examples/nim/stack.yaml | 4 ++++ language-support/hs/bindings/package.yaml | 4 ++++ language-support/hs/bindings/stack.yaml | 4 ++++ language-support/scala/examples/quickstart-scala/daml.yaml | 5 ++++- language-support/ts/codegen/tests/daml/daml.yaml | 4 ++++ navigator/backend/scenarios/rental/daml.yaml | 4 ++++ release/artifacts.yaml | 4 ++++ stack-snapshot.yaml | 4 ++++ triggers/tests/scenarios/daml.yaml | 4 ++++ 27 files changed, 104 insertions(+), 1 deletion(-) diff --git a/.hlint.yaml b/.hlint.yaml index 93af6333faf1..476bf9a83fc3 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + # HLint configuration file # https://github.com/ndmitchell/hlint ########################## @@ -132,3 +135,4 @@ # Define some custom infix operators # - fixity: infixr 3 ~^#^~ + diff --git a/.mergify.yml b/.mergify.yml index 524e64e9d016..6c471d165ad0 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + pull_request_rules: - name: "strict rebase" conditions: @@ -35,3 +38,4 @@ pull_request_rules: method: squash # Takes no options, see delete_head_branch: {} + diff --git a/azure-cron.yml b/azure-cron.yml index eb4d2b1cf8f0..ac62fd92e0e1 100644 --- a/azure-cron.yml +++ b/azure-cron.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + # Azure Pipelines file, see https://aka.ms/yaml # Do not run on PRs diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e014928b1985..6a67eb2fff1f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + # Azure Pipelines file, see https://aka.ms/yaml # Enable builds on all branches diff --git a/ci/build-unix.yml b/ci/build-unix.yml index 5cab125227b1..6c5b16d28b2c 100644 --- a/ci/build-unix.yml +++ b/ci/build-unix.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + parameters: name: '' @@ -71,3 +74,4 @@ steps: inputs: targetPath: $(Build.StagingDirectory)/$(publish.artifact) artifactName: $(publish.artifact) + diff --git a/ci/build-windows.yml b/ci/build-windows.yml index a4b6cb146341..b52f58fd8a27 100644 --- a/ci/build-windows.yml +++ b/ci/build-windows.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + steps: - checkout: self @@ -57,3 +60,4 @@ steps: inputs: targetPath: $(Build.StagingDirectory)/$(publish.artifact-unsigned-windows-installer) artifactName: $(publish.artifact-unsigned-windows-installer) + diff --git a/ci/report-end.yml b/ci/report-end.yml index 8087a03beafb..39042414badf 100644 --- a/ci/report-end.yml +++ b/ci/report-end.yml @@ -1,6 +1,10 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + steps: - bash: | set -euo pipefail echo "##vso[task.setvariable variable=time;isOutput=true]$(date -u +"%Y-%m-%dT%H:%M:%S+00:00")" condition: always() name: end + diff --git a/ci/report-start.yml b/ci/report-start.yml index 1a5db4b38f46..ad589d3028b7 100644 --- a/ci/report-start.yml +++ b/ci/report-start.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + steps: - bash: | set -euo pipefail @@ -5,3 +8,4 @@ steps: echo "##vso[task.setvariable variable=machine;isOutput=true]$(Agent.MachineName)" condition: always() name: start + diff --git a/ci/tell-slack-failed.yml b/ci/tell-slack-failed.yml index d6d2f1c0452b..c015b7f03c9d 100644 --- a/ci/tell-slack-failed.yml +++ b/ci/tell-slack-failed.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + steps: - bash: | set -euo pipefail @@ -8,3 +11,4 @@ steps: --data "{\"text\":\" *FAILED* $(Agent.JobName): \n\"}" \ $(Slack.team-daml) condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master')) + diff --git a/compiler/damlc/daml-ide-core/dlint.yaml b/compiler/damlc/daml-ide-core/dlint.yaml index e76b76f4215c..b0acdc10e8ca 100644 --- a/compiler/damlc/daml-ide-core/dlint.yaml +++ b/compiler/damlc/daml-ide-core/dlint.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + # hlint configuration file # ================================== @@ -670,3 +673,4 @@ - ignore: {name: Redundant $} # Don't warn on redundant do (DAML choice syntax *mandates* 'do'!) - ignore: {name: Redundant do} + diff --git a/compiler/damlc/ide-debug-driver/sample-config.yaml b/compiler/damlc/ide-debug-driver/sample-config.yaml index bdcbafbef907..cc852aa0b050 100644 --- a/compiler/damlc/ide-debug-driver/sample-config.yaml +++ b/compiler/damlc/ide-debug-driver/sample-config.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + ide-cmd: daml-head ide --debug project-root: /home/moritz/quickstart-java commands: @@ -16,3 +19,4 @@ commands: - cmd: close file: daml/Main.daml - cmd: wait + diff --git a/dev-env/bin/dade-copyright-headers b/dev-env/bin/dade-copyright-headers index 1e45bc4f2dc7..b48733b0ac99 100755 --- a/dev-env/bin/dade-copyright-headers +++ b/dev-env/bin/dade-copyright-headers @@ -60,6 +60,8 @@ filetypes = \ 'tf' : { 'start' : '#' * 80 , 'line' : '#' , 'end' : '' , 'empty_line' : '' } , 'css' : { 'start' : '/*' , 'line' : '' , 'end' : ' */' } , 'scss' : { 'start' : '/*' , 'line' : '' , 'end' : ' */' } , + 'yml' : { 'start' : '#' * 80 , 'line' : '#' , 'end' : '' , 'empty_line' : '' } , + 'yaml' : { 'start' : '#' * 80 , 'line' : '#' , 'end' : '' , 'empty_line' : '' } , } ######################### diff --git a/dev-env/dotfiles/stylish-haskell.yaml b/dev-env/dotfiles/stylish-haskell.yaml index 049166a23cec..607d8da37dfd 100644 --- a/dev-env/dotfiles/stylish-haskell.yaml +++ b/dev-env/dotfiles/stylish-haskell.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + # stylish-haskell configuration file # ================================== @@ -169,3 +172,4 @@ newline: native # language_extensions: # - TemplateHaskell # - QuasiQuotes + diff --git a/docs/source/getting-started/quickstart/template-root/da-skeleton.yaml b/docs/source/getting-started/quickstart/template-root/da-skeleton.yaml index 0842cebc3443..06284572c47c 100644 --- a/docs/source/getting-started/quickstart/template-root/da-skeleton.yaml +++ b/docs/source/getting-started/quickstart/template-root/da-skeleton.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + project: source: daml scenario: Main:setup @@ -6,3 +9,4 @@ project: - Bob - USD_Bank - EUR_Bank + diff --git a/docs/source/migrate/foo-1.0.0/daml.yaml b/docs/source/migrate/foo-1.0.0/daml.yaml index 9bbb63fdb795..c7e2f5e2cc46 100644 --- a/docs/source/migrate/foo-1.0.0/daml.yaml +++ b/docs/source/migrate/foo-1.0.0/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.0.0 name: foo source: daml @@ -10,3 +13,4 @@ exposed-modules: dependencies: - daml-prim - daml-stdlib + diff --git a/docs/source/migrate/foo-2.0.0/daml.yaml b/docs/source/migrate/foo-2.0.0/daml.yaml index 51d6b57a57e0..67959e998aac 100644 --- a/docs/source/migrate/foo-2.0.0/daml.yaml +++ b/docs/source/migrate/foo-2.0.0/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.0.0 name: foo source: daml @@ -10,3 +13,4 @@ exposed-modules: dependencies: - daml-prim - daml-stdlib + diff --git a/docs/source/migrate/foo-upgrade-2.0.0/daml.yaml b/docs/source/migrate/foo-upgrade-2.0.0/daml.yaml index e2ab22bfbf9f..493b8445d219 100644 --- a/docs/source/migrate/foo-upgrade-2.0.0/daml.yaml +++ b/docs/source/migrate/foo-upgrade-2.0.0/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.0.0 name: foo-upgrade-2.0.0 source: daml @@ -14,3 +17,4 @@ dependencies: build-options: - '--package=("foo-1.0.0",[("Foo","FooA")])' - '--package=("foo-2.0.0",[("Foo","FooB")])' + diff --git a/language-support/hs/bindings/examples/nim/package.yaml b/language-support/hs/bindings/examples/nim/package.yaml index 3b1c69567bb5..b93106dd8a5d 100644 --- a/language-support/hs/bindings/examples/nim/package.yaml +++ b/language-support/hs/bindings/examples/nim/package.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + name: nim version: 0.1.0.0 description: Play Nim on a DAML Ledger @@ -35,3 +38,4 @@ executables: - OverloadedStrings - RecordWildCards - ScopedTypeVariables + diff --git a/language-support/hs/bindings/examples/nim/stack.yaml b/language-support/hs/bindings/examples/nim/stack.yaml index 1e3be1f73a12..c92a2b93a686 100644 --- a/language-support/hs/bindings/examples/nim/stack.yaml +++ b/language-support/hs/bindings/examples/nim/stack.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + resolver: lts-14.3 extra-lib-dirs: @@ -21,3 +24,4 @@ extra-deps: - core - archive: /tmp/daml-ledger-0.1.0.0.tar.gz + diff --git a/language-support/hs/bindings/package.yaml b/language-support/hs/bindings/package.yaml index e07237771346..c055b67af217 100644 --- a/language-support/hs/bindings/package.yaml +++ b/language-support/hs/bindings/package.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + name: daml-ledger version: 0.1.0.0 description: Haskell bindings for a DAML Ledger @@ -42,3 +45,4 @@ library: - OverloadedStrings - RecordWildCards - ScopedTypeVariables + diff --git a/language-support/hs/bindings/stack.yaml b/language-support/hs/bindings/stack.yaml index 372220ab015f..bd0a7d58ca39 100644 --- a/language-support/hs/bindings/stack.yaml +++ b/language-support/hs/bindings/stack.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + resolver: lts-14.3 extra-lib-dirs: @@ -19,3 +22,4 @@ extra-deps: subdirs: - . - core + diff --git a/language-support/scala/examples/quickstart-scala/daml.yaml b/language-support/scala/examples/quickstart-scala/daml.yaml index 9080eaf10568..8bc6c2e5d8c0 100644 --- a/language-support/scala/examples/quickstart-scala/daml.yaml +++ b/language-support/scala/examples/quickstart-scala/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.0.0 name: quickstart source: daml @@ -19,4 +22,4 @@ codegen: package-prefix: com.digitalasset.quickstart.iou.model output-directory: scala-codegen/src/main/scala verbosity: 2 -# \ No newline at end of file +# diff --git a/language-support/ts/codegen/tests/daml/daml.yaml b/language-support/ts/codegen/tests/daml/daml.yaml index c1b0ec491f31..8aacc9c7094a 100644 --- a/language-support/ts/codegen/tests/daml/daml.yaml +++ b/language-support/ts/codegen/tests/daml/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.0.0 name: daml version: 1.0.0 @@ -10,3 +13,4 @@ exposed-modules: dependencies: - daml-prim - daml-stdlib + diff --git a/navigator/backend/scenarios/rental/daml.yaml b/navigator/backend/scenarios/rental/daml.yaml index fce38a1962c5..45777cc26e97 100644 --- a/navigator/backend/scenarios/rental/daml.yaml +++ b/navigator/backend/scenarios/rental/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.13.0 name: rental source: daml/Main.daml @@ -12,3 +15,4 @@ exposed-modules: dependencies: - daml-prim - daml-stdlib + diff --git a/release/artifacts.yaml b/release/artifacts.yaml index 691132b89b34..e40da5f767d1 100644 --- a/release/artifacts.yaml +++ b/release/artifacts.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + - target: //daml-lf/data:data type: jar-scala - target: //daml-lf/archive:daml_lf_dev_archive_java_proto @@ -194,3 +197,4 @@ type: jar-scala - target: //libs-scala/timer-utils:timer-utils type: jar-scala + diff --git a/stack-snapshot.yaml b/stack-snapshot.yaml index 9a1329341971..0e6a54c0dce2 100644 --- a/stack-snapshot.yaml +++ b/stack-snapshot.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + resolver: lts-14.1 packages: - archive: http://digitalassetsdk.bintray.com/ghc-lib/ghc-lib-parser-8.8.1.20200122.tar.gz @@ -29,3 +32,4 @@ packages: # Core packages, need to be listed for integer-simple flags. - integer-simple-0.1.1.1 - text-1.2.3.1 + diff --git a/triggers/tests/scenarios/daml.yaml b/triggers/tests/scenarios/daml.yaml index 9feac3a2dbeb..e8e248de7b6a 100644 --- a/triggers/tests/scenarios/daml.yaml +++ b/triggers/tests/scenarios/daml.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2020 The DAML Authors. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + sdk-version: 0.13.44 name: trigger-scenarios source: . @@ -6,3 +9,4 @@ dependencies: - daml-stdlib - daml-prim - daml-trigger.dar +