Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: It looks like Antlir doesn't always materialize Python resources properly. Existing check for `path.name` passes but that still doesn't guarantee that the file exists. Switching to `os.path.exists` check instead. Test Plan: ``` buck2 test fbcode//antlir:test-fs-utils buck2 test fbcode//antlir:test-fs-utils-path-resource-zip buck2 test fbcode//antlir/bzl/genrule/facebook/chef_solo:test-centos9-fbcode-chef-solo-in-layer buck2 test fbcode//antlir/bzl/genrule/facebook/chef_solo:test-centos8-fbcode-chef-solo-in-layer ``` Reviewed By: justintrudell Differential Revision: D50604944 fbshipit-source-id: 64752cbf6a53b58605ca40b939498cfa2372d8a1
- Loading branch information