#!/bin/bash

if [[ -z "$1" ]]
then
  echo "Please specify the release tag"
  exit 1
fi

set -e

rm -rf tmp
mkdir tmp

git clone https://github.com/GoogleCloudPlatform/functions-framework-dotnet.git \
  --depth 1 -b $1 --recursive tmp/release
  
cd tmp/release
./build.sh


#!/bin/bash

if [[ -z "$1" ]]
then
  echo "Please specify the release tag"
  exit 1
fi

set -e

rm -rf tmp
mkdir tmp

git clone https://github.com/GoogleCloudPlatform/functions-framework-dotnet.git \
  --depth 1 -b $1 tmp/release
  
cd tmp/release
./build.sh


--- 
+++ 
@@ -12,7 +12,7 @@
 mkdir tmp
 
 git clone https://github.com/GoogleCloudPlatform/functions-framework-dotnet.git \
-  --depth 1 -b $1 --recursive tmp/release
+  --depth 1 -b $1 tmp/release
   
 cd tmp/release
 ./build.sh
Clone recursively when building a release

Without this, dotnet pack complains that SourceLink may be broken due to the conformance test submodule.

I'm not entirely sure it's correct, but cloning recursively makes
the problem go away in a cheap way.
