@@ -174,6 +174,7 @@ writeSupportFiles baseOutpath = do
174 B.writeFile goModSource $ T.encodeUtf8 modText'
174 B.writeFile goModSource $ T.encodeUtf8 modText'
175 callProcess "go" ["mod", "edit", "-replace", replaceLoader]
175 callProcess "go" ["mod", "edit", "-replace", replaceLoader]
176 callProcess "go" ["mod", "edit", "-replace", replaceOutput]
176 callProcess "go" ["mod", "edit", "-replace", replaceOutput]
177+ callProcess "go" ["clean", "-modcache"]
177 writeLoaderFile :: FilePath -> B.ByteString -> IO ()
178 writeLoaderFile :: FilePath -> B.ByteString -> IO ()
178 writeLoaderFile ffiOutpath loaderText = do
179 writeLoaderFile ffiOutpath loaderText = do
179 let loaderSource = ffiOutpath </> "ffi_loader.go"
180 let loaderSource = ffiOutpath </> "ffi_loader.go"