Add a `fileSyntaxCache.invalidate(packageId)` call that was missed in the situation where `#fetchLoadsFromBuildFile` throws `NoSuchPackageException`.
@@ -1239,6 +1239,7 @@ public class PackageFunction implements SkyFunction {
env,
bzlLoadFunctionForInlining);
} catch (NoSuchPackageException e) {
+ fileSyntaxCache.invalidate(packageId);
throw new PackageFunctionException(e, Transience.PERSISTENT);
} catch (InterruptedException e) {
fileSyntaxCache.invalidate(packageId);
