@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
1515limitations under the License.
1616"""
1717
18- load ("//gcs/private:util.bzl" , "bucket_url " , "download_and_extract_args " , "parse_gs_url " )
18+ load ("//gcs/private:util.bzl" , "download_and_extract_args " , "parse_gs_url " , "update_integrity_attr " )
1919
2020def _gcs_archive_impl (repository_ctx ):
2121 gs_url = repository_ctx .attr .url
@@ -24,7 +24,7 @@ def _gcs_archive_impl(repository_ctx):
2424
2525 # download && extract the repo
2626 args = download_and_extract_args (repository_ctx .attr , target ["bucket_name" ], target ["remote_path" ])
27- repository_ctx .download_and_extract (** args )
27+ download_info = repository_ctx .download_and_extract (** args )
2828
2929 # apply patches after extraction has finished
3030 for patch in repository_ctx .attr .patches :
@@ -39,6 +39,7 @@ def _gcs_archive_impl(repository_ctx):
3939 repository_ctx .file ("BUILD.bazel" , repository_ctx .attr .build_file_content )
4040 if has_build_file_label :
4141 repository_ctx .file ("BUILD.bazel" , repository_ctx .read (repository_ctx .attr .build_file ))
42+ return update_integrity_attr (repository_ctx , _gcs_archive_attrs , download_info )
4243
4344_gcs_archive_doc = """Downloads a Bazel repository as a compressed archive file from a GCS bucket, decompresses it,
4445and makes its targets available for binding.
0 commit comments