From 561e8e5541f82c66daef3ed946ffe06864822a2f Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Fri, 12 Sep 2025 21:30:05 -0700 Subject: [PATCH] rocmPackages.miopen: note that the broken lfsconfig workaround is really bad --- pkgs/development/rocm-modules/6/miopen/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/rocm-modules/6/miopen/default.nix b/pkgs/development/rocm-modules/6/miopen/default.nix index 18256140473e..80b60f69a8f1 100644 --- a/pkgs/development/rocm-modules/6/miopen/default.nix +++ b/pkgs/development/rocm-modules/6/miopen/default.nix @@ -74,10 +74,10 @@ let fetchSubmodules = true; # WORKAROUND: .lfsconfig is incorrectly set to exclude everything upstream leaveDotGit = true; + # FIXME: if someone can reduce the level of awful here that would be really nice postFetch = '' export HOME=$(mktemp -d) cd $out - set -x git remote add origin $url git fetch origin +refs/tags/rocm-${version}:refs/tags/rocm-${version} git clean -fdx @@ -86,8 +86,8 @@ let rm .lfsconfig git lfs install git lfs track "*.kdb.bz2" - GIT_TRACE=1 git lfs fetch --include="src/kernels/**" - GIT_TRACE=1 git lfs pull --include="src/kernels/**" + git lfs fetch --include="src/kernels/**" + git lfs pull --include="src/kernels/**" git lfs checkout rm -rf .git