From df491c984479c46215247f35fb666680d62e575c Mon Sep 17 00:00:00 2001 From: Andres Paz Date: Thu, 2 May 2019 17:46:15 -0700 Subject: [PATCH] Add explicit package version to M.Q.Katas in Notebooks (#109) This adds explicit package version to Kata Notebooks, so that an update of the NuGet packages (with potentially breaking changes) does not get picked up immediately. --- BasicGates/BasicGates.ipynb | 2 +- DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb | 2 +- Dockerfile | 2 +- Measurements/Measurements.ipynb | 2 +- Superposition/Superposition.ipynb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BasicGates/BasicGates.ipynb b/BasicGates/BasicGates.ipynb index 7ad4a4e6dc3..5b52077e7fc 100644 --- a/BasicGates/BasicGates.ipynb +++ b/BasicGates/BasicGates.ipynb @@ -36,7 +36,7 @@ "metadata": {}, "outputs": [], "source": [ - "%package Microsoft.Quantum.Katas" + "%package Microsoft.Quantum.Katas::0.5.1904.1302" ] }, { diff --git a/DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb b/DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb index 68e60b56118..e4c1e91f882 100644 --- a/DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb +++ b/DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb @@ -34,7 +34,7 @@ "metadata": {}, "outputs": [], "source": [ - "%package Microsoft.Quantum.Katas" + "%package Microsoft.Quantum.Katas::0.5.1904.1302" ] }, { diff --git a/Dockerfile b/Dockerfile index 155114f4520..29ea970cfa4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ DOTNET_ROOT=${HOME}/dotnet # install IQSharp -RUN dotnet tool install -g Microsoft.Quantum.IQSharp +RUN dotnet tool install -g Microsoft.Quantum.IQSharp --version 0.5.1904.1302 RUN dotnet iqsharp install --user --path-to-tool="$(which dotnet-iqsharp)" # Make sure the contents of our repo are in ${HOME} diff --git a/Measurements/Measurements.ipynb b/Measurements/Measurements.ipynb index b772b9f24a6..0e6dbb1b7a8 100644 --- a/Measurements/Measurements.ipynb +++ b/Measurements/Measurements.ipynb @@ -32,7 +32,7 @@ "metadata": {}, "outputs": [], "source": [ - "%package Microsoft.Quantum.Katas" + "%package Microsoft.Quantum.Katas::0.5.1904.1302" ] }, { diff --git a/Superposition/Superposition.ipynb b/Superposition/Superposition.ipynb index 7f0c1f4645f..19c4405c7b4 100644 --- a/Superposition/Superposition.ipynb +++ b/Superposition/Superposition.ipynb @@ -33,7 +33,7 @@ "metadata": {}, "outputs": [], "source": [ - "%package Microsoft.Quantum.Katas" + "%package Microsoft.Quantum.Katas::0.5.1904.1302" ] }, {