diff options
author | Daniel Ennis <[email protected]> | 2020-08-24 22:22:08 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2020-08-24 22:40:19 -0400 |
commit | c97ce029e99c0bd2281b30b1c35885bc9a3c4a74 (patch) | |
tree | b06142b02170a500cd810c22d7b379f4561cd7c9 /scripts | |
parent | 627f4b8561115d40d6a39587d1ad94b0104f7e14 (diff) | |
download | Paper-c97ce029e99c0bd2281b30b1c35885bc9a3c4a74.tar.gz Paper-c97ce029e99c0bd2281b30b1c35885bc9a3c4a74.zip |
1.16.2 Release (#4123)
PaperMC believes that 1.16.2 is now ready for general release as we fixed the main issue plagueing the 1.16.x release, the MapLike data conversion issues.
Until now, it was not safe for a server to convert a world to 1.16.2 without data conversion issues around villages and potentially other things. If you did, those MapLike errors meant something went wrong.
This is now resolved.
Big thanks to all those that helped, notably @BillyGalbreath and @Proximyst who did large parts of the update process with me.
Please as always, backup your worlds and test before updating to 1.16.2!
If you update to 1.16.2, there is no going back to an older build than this.
---------------------------------
Co-authored-by: William Blake Galbreath <[email protected]>
Co-authored-by: Mariell Hoversholm <[email protected]>
Co-authored-by: krolik-exe <[email protected]>
Co-authored-by: BillyGalbreath <[email protected]>
Co-authored-by: stonar96 <[email protected]>
Co-authored-by: Shane Freeder <[email protected]>
Co-authored-by: Jason <[email protected]>
Co-authored-by: kashike <[email protected]>
Co-authored-by: Aurora <[email protected]>
Co-authored-by: KennyTV <[email protected]>
Co-authored-by: commandblockguy <[email protected]>
Co-authored-by: DigitalRegent <[email protected]>
Co-authored-by: ishland <[email protected]>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkoutpr.sh | 30 | ||||
-rwxr-xr-x | scripts/importmcdev.sh | 1 | ||||
-rwxr-xr-x | scripts/requireDeps.sh | 28 |
3 files changed, 52 insertions, 7 deletions
diff --git a/scripts/checkoutpr.sh b/scripts/checkoutpr.sh index 3d07227ff6..204fb0ed9f 100755 --- a/scripts/checkoutpr.sh +++ b/scripts/checkoutpr.sh @@ -3,7 +3,7 @@ if [ -z "$1" ]; then echo "$0 <prID>" exit 1; fi -repo=$(git remote get-url origin | sed -E 's/github.com(:|\/)//g') +repo=$(git remote get-url origin | sed -E 's/(.*@)?github.com(:|\/)//g' | sed 's/.git$//g') data=$(curl -q https://api.github.com/repos/$repo/pulls/$1 2>/dev/null) url=$(echo -e "$data" | grep --color=none ssh_url | head -n 1 |awk '{print $2}' | sed 's/"//g' | sed 's/,//g') ref=$(echo -e "$data" | grep --color=none '"head":' -A 3 | grep ref | head -n 1 |awk '{print $2}' | sed 's/"//g' | sed 's/,//g') @@ -16,23 +16,39 @@ git branch -D $branch 2>/dev/null 1>&2 git checkout -b $branch $up/$ref 2>/dev/null|| true echo "Merging $prevbranch into $branch" git fetch origin -git merge origin/$prevbranch - +read -p "Press 'm' to merge, 'r' to rebase, or 'n' for nothing" -n 1 -r >&2 +echo +if [[ "$REPLY" =~ ^[Mm]$ ]]; then + git merge origin/$prevbranch +elif [[ "$REPLY" =~ ^[Rr]$ ]]; then + git rebase master +fi echo "Dropping to new shell, exit to delete the refs" -bash -i +"${SHELL:-bash}" -i read -p "Press 'p' to push. " -n 1 -r >&2 echo -if [[ "d$REPLY" =~ ^d[Pp]$ ]]; then +pushed=0 +if [[ "$REPLY" =~ ^[Pp]$ ]]; then git push $up $branch:$ref -f - + pushed=1 echo "Pushed" >&2 fi echo "Deleting branch/upstream" git checkout $prevbranch +if [[ "$pushed" == "1" ]]; then + read -p "Press 'm' to merge or 'r' to rebase merge " -n 1 -r >&2 + if [[ "$REPLY" =~ ^[Mm]$ ]]; then + git merge $branch + fi + if [[ "$REPLY" =~ ^[Rr]$ ]]; then + git merge --ff-only $branch + fi +fi + git branch -D $branch git remote remove $up git gc #git branch -u $up/$ref $branch -#git checkout $branch
\ No newline at end of file +#git checkout $branch diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh index 269f68bcd4..ddeef85baa 100755 --- a/scripts/importmcdev.sh +++ b/scripts/importmcdev.sh @@ -106,6 +106,7 @@ done # dont forget \ at end of each line but last importLibrary com.mojang authlib com/mojang/authlib yggdrasil/YggdrasilGameProfileRepository.java importLibrary com.mojang datafixerupper com/mojang/datafixers/util Either.java +importLibrary com.mojang datafixerupper com/mojang/serialization/codecs KeyDispatchCodec.java ######################################################## ######################################################## diff --git a/scripts/requireDeps.sh b/scripts/requireDeps.sh new file mode 100755 index 0000000000..911460e872 --- /dev/null +++ b/scripts/requireDeps.sh @@ -0,0 +1,28 @@ +#!/bin/sh +set -ue + +# Check if an application is on the PATH. +# If it is not, return with non-zero. +_is_dep_available() { + command -v "$1" >/dev/null || (echo "$1 ${2:-was not found and is a required dependency}"; return 1) +} + +if [ -z "${1:-}" ]; then + # No specific dependency was found; let's just check for all required ones. + _is_dep_available git + _is_dep_available patch + _is_dep_available mvn + + # Ensure we don't have a JAVA_HOME set first. + # Maven should work fine without the JAVA_HOME var as long as the JDK is on the PATH. + if [ -z "${JAVA_HOME:-}" ]; then + _is_dep_available javac "was not found; you can download the JDK from https://adoptopenjdk.net/ or via your package manager" + fi +else + # Require all dependencies provided. + for dep in $@; do + _is_dep_available "$dep" + done +fi + +# vim: set ff=unix autoindent ts=4 sw=4 tw=0 et : |