diff --git a/dev/release-artifacts.py b/dev/release-artifacts.py index d5f28f6fc0ca..9f27d35738c6 100644 --- a/dev/release-artifacts.py +++ b/dev/release-artifacts.py @@ -230,7 +230,6 @@ def release_note( ) -> None: """Generate a note for GitHub release description.""" r_gpu_linux_url = r_urls["linux"] - r_gpu_win64_url = r_urls["win64"] src_tarball = ( f"https://github.com/dmlc/xgboost/releases/download/v{release}/{tarname}" ) @@ -251,7 +250,6 @@ def release_note( **Experimental binary packages for R with CUDA enabled** * xgboost_r_gpu_linux_{release}.tar.gz: [Download]({r_gpu_linux_url}) -* xgboost_r_gpu_win64_{release}.tar.gz: [Download]({r_gpu_win64_url}) **Source tarball** * xgboost.tar.gz: [Download]({src_tarball})""" @@ -297,6 +295,8 @@ def main(args: argparse.Namespace) -> None: commit_hash = latest_hash() outdir = os.path.abspath(args.outdir) + if outdir.find(str(ROOT)) != -1: + raise ValueError("output dir must be outside of the source tree.") if not os.path.exists(outdir): os.mkdir(outdir)