@@ -264,13 +264,13 @@ fn find_unused_patches(cargo_lock: &DocumentMut) -> Option<Vec<String>> {
264264
265265/// Pulls names of crates published from the `starkware-libs/cairo` repository.
266266///
267- /// The list is obtained by parsing the `scripts/release_crates .sh` script in that repo.
267+ /// The list is obtained by parsing the `scripts/crates_list .sh` script in that repo.
268268/// The resulting vector is sorted alphabetically.
269269fn pull_cairo_packages_from_cairo_repository ( spec : & Spec ) -> Result < Vec < String > > {
270270 let sh = Shell :: new ( ) ?;
271271
272- let release_crates_sh = if let Some ( path) = & spec. path {
273- sh. read_file ( path. join ( "scripts" ) . join ( "release_crates .sh" ) ) ?
272+ let crates_list_sh = if let Some ( path) = & spec. path {
273+ sh. read_file ( path. join ( "scripts" ) . join ( "crates_list .sh" ) ) ?
274274 } else {
275275 let rev = if let Some ( version) = & spec. version {
276276 format ! ( "refs/tags/v{version}" )
@@ -282,16 +282,16 @@ fn pull_cairo_packages_from_cairo_repository(spec: &Spec) -> Result<Vec<String>>
282282 "refs/heads/main" . to_string ( )
283283 } ;
284284 let url = format ! (
285- "https://raw.githubusercontent.com/starkware-libs/cairo/{rev}/scripts/release_crates .sh"
285+ "https://raw.githubusercontent.com/starkware-libs/cairo/{rev}/scripts/crates_list .sh"
286286 ) ;
287287 cmd ! ( sh, "curl -sSfL {url}" ) . read ( ) ?
288288 } ;
289289
290- let Some ( ( _, source_list) ) = release_crates_sh . split_once ( "CRATES_TO_PUBLISH =(" ) else {
291- bail ! ( "failed to extract start of `CRATES_TO_PUBLISH ` from `scripts/release_crates .sh`" ) ;
290+ let Some ( ( _, source_list) ) = crates_list_sh . split_once ( "CRATES =(" ) else {
291+ bail ! ( "failed to extract start of `CRATES ` from `scripts/crates_list .sh`" ) ;
292292 } ;
293293 let Some ( ( source_list, _) ) = source_list. split_once ( ")" ) else {
294- bail ! ( "failed to extract end of `CRATES_TO_PUBLISH ` from `scripts/release_crates .sh`" ) ;
294+ bail ! ( "failed to extract end of `CRATES ` from `scripts/crates_list .sh`" ) ;
295295 } ;
296296
297297 let mut crates: Vec < String > = source_list
0 commit comments