Skip to content

Commit

Permalink
Bump to 2.9.5 + Fix nix and update hashes script (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-da authored Oct 24, 2024
1 parent c5668ed commit 66495d0
Show file tree
Hide file tree
Showing 57 changed files with 66 additions and 61 deletions.
2 changes: 1 addition & 1 deletion bin/update-daml-hashes
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ get_hash() (
if [ -n "''${ARTIFACTORY_PASSWORD:-}" ]; then
curl -u $ARTIFACTORY_USERNAME:$ARTIFACTORY_PASSWORD \
--silent \
https://digitalasset.jfrog.io/artifactory/assembly/daml/${sdkVersion}/daml-sdk-${sdkVersion}-${os}.tar.gz \
https://digitalasset.jfrog.io/artifactory/assembly/daml/${sdkVersion}/daml-sdk-${sdkVersion}-${os/linux/linux-intel}.tar.gz \
> $out
else
echo "ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD must be set." >&2
Expand Down
4 changes: 2 additions & 2 deletions daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# update the hashes. The sdk-version refers to the release folder names (or tags) found here:
# https://github.com/digital-asset/daml/releases
# For example 2.9.0-rc1 (in case of a release candidate) or 2.8.0 (for a regular release)
sdk-version: 2.9.4
sdk-version: 2.9.5
# daml-version is not used by the daml assistant, only by the finance nix config
# It refers to the version number of the files of the release folder.
# For example, if you use a release candidate like:
Expand All @@ -16,7 +16,7 @@ sdk-version: 2.9.4
# On the other hand, if you use a regular release like:
# https://github.com/digital-asset/daml/releases/tag/v2.8.0
# the daml-version would simply be: 2.8.0
daml-version: 2.9.4
daml-version: 2.9.5
name: daml-finance
source: src/test/daml
# version is independent of the actual sdk-version. It is used to create an assembly artifact here
Expand Down
2 changes: 1 addition & 1 deletion docs/code-samples/getting-started/daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# *** DO NOT COPY THIS FILE TO THE DAML REPO ***

sdk-version: 2.9.4
sdk-version: 2.9.5
name: quickstart-finance
source: daml
init-script: Scripts.Transfer:runTransfer
Expand Down
2 changes: 1 addition & 1 deletion docs/code-samples/lifecycling/daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# *** DO NOT COPY THIS FILE TO THE DAML REPO ***

sdk-version: 2.9.4
sdk-version: 2.9.5
name: finance-lifecycling
source: daml
init-script: Scripts.FixedRateBond:runFixedRateBond
Expand Down
2 changes: 1 addition & 1 deletion docs/code-samples/payoff-modeling/daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# *** DO NOT COPY THIS FILE TO THE DAML REPO ***

sdk-version: 2.9.4
sdk-version: 2.9.5
name: finance-payoff-modeling
source: daml
init-script: PayoffBuilder:runCreateAndLifecycle
Expand Down
2 changes: 1 addition & 1 deletion docs/code-samples/settlement/daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# *** DO NOT COPY THIS FILE TO THE DAML REPO ***

sdk-version: 2.9.4
sdk-version: 2.9.5
name: finance-settlement
source: daml
init-script: Scripts.Transfer:runDualControlTransfer
Expand Down
2 changes: 1 addition & 1 deletion docs/code-samples/upgrades/daml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# *** DO NOT COPY THIS FILE TO THE DAML REPO ***

sdk-version: 2.9.4
sdk-version: 2.9.5
name: finance-upgrades
source: daml
init-script: Scripts.UpgradeHolding:upgradeHolding
Expand Down
10 changes: 7 additions & 3 deletions nix/daml.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, jdk, curl, curl_cert, sdkVersion, damlVersion, os, hashes }:
{ stdenv, jdk, curl, curl_cert, sdkVersion, damlVersion, os, osJFrog, hashes }:
let
tarball = stdenv.mkDerivation {
pname = "daml-tarball";
Expand All @@ -25,7 +25,7 @@ let
echo "Downloading SDK from Artifactory..."
if [ -n "''${ARTIFACTORY_PASSWORD:-}" ]; then
curl -u $ARTIFACTORY_USERNAME:$ARTIFACTORY_PASSWORD \
https://digitalasset.jfrog.io/artifactory/assembly/daml/${sdkVersion}/daml-sdk-${sdkVersion}-${os}.tar.gz \
https://digitalasset.jfrog.io/artifactory/assembly/daml/${sdkVersion}/daml-sdk-${sdkVersion}-${osJFrog}.tar.gz \
> $out
else
echo "ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD must be set." >&2
Expand All @@ -51,7 +51,11 @@ in
tar xzf $src -C daml --strip-components 1
patchShebangs .
'';
installPhase = "cd daml; DAML_HOME=$out ./install.sh";
installPhase = ''
cd daml
export DAML_HOME=$out
./daml/daml install --install-assistant yes --install-with-internal-version yes $src
'';
propagatedBuildInputs = [ jdk ];
preFixup = ''
# Set DAML_HOME automatically.
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/ContingentClaims.Core/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: contingent-claims-core
source: daml
version: 2.0.2
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/ContingentClaims.Lifecycle/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: contingent-claims-lifecycle
source: daml
version: 2.0.2
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/ContingentClaims.Valuation/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: contingent-claims-valuation
source: daml
version: 0.2.3
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Account/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-account
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Claims/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-claims
source: daml
version: 2.1.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Data/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-data
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Holding/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-holding
source: daml
version: 3.0.2
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Instrument.Bond/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-bond
source: daml
version: 2.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Instrument.Equity/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-equity
source: daml
version: 0.4.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-generic
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Instrument.Option/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-option
source: daml
version: 0.3.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-structuredproduct
source: daml
version: 0.2.0
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Instrument.Swap/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-swap
source: daml
version: 0.4.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Instrument.Token/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-instrument-token
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Interface.Account/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-account
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Interface.Claims/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-claims
source: daml
version: 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Interface.Data/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-data
source: daml
version: 3.1.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Interface.Holding/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-holding
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-base
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-bond
source: daml
version: 2.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-equity
source: daml
version: 0.4.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-generic
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-option
source: daml
version: 0.3.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-structuredproduct
source: daml
version: 0.2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-swap
source: daml
version: 0.4.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-token
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-instrument-types
source: daml
version: 1.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-lifecycle
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-settlement
source: daml
version: 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-types-common
source: daml
version: 2.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-types-date
source: daml
version: 2.1.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Interface.Util/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-interface-util
source: daml
version: 2.1.1
Expand Down
2 changes: 1 addition & 1 deletion package/main/daml/Daml.Finance.Lifecycle/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 2.9.4
sdk-version: 2.9.5
name: daml-finance-lifecycle
source: daml
version: 3.0.1
Expand Down
Loading

0 comments on commit 66495d0

Please sign in to comment.