dannycjones opened a new pull request, #2830:
URL: https://github.com/apache/iceberg-rust/pull/2830

   ## Which issue does this PR close?
   
   For release: #2527
   
   ## What changes are included in this PR?
   
   These changes are cherry-picks of #2823 and #2828. The crates were missing 
the LICENSE and NOTICE files required for the distributed source code.
   
   ## Are these changes tested?
   
   Tested using the following script provided by @kevinjqliu. Introducing
   this in CI is left as a follow-up 
(https://github.com/apache/iceberg-rust/issues/2827).
   
   ```bash
   set -Eeuo pipefail
   
   failed=0
   
   while IFS= read -r crate; do
       echo "Checking ${crate}..."
       files="$(cargo package \
       --package "${crate}" \
       --list \
       --locked)"
   
       for required in LICENSE NOTICE; do
       if ! grep -Fxq "${required}" <<<"${files}"; then
           echo "::error::${crate} package is missing top-level ${required}"
           failed=1
       fi
       done
   done < <(
       cargo metadata --no-deps --format-version 1 |
       jq -r '.packages[] | select(.publish != []) | .name'
   )
   
   exit "${failed}"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to