Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

cargo vendor 🚚 on - third party: Upgrade rustc_hash Summary: To 2.1 Unfortunately, I can't remove the old version of the crate. The problem is that it appears in the [public API](https://docs.rs/tiktoken-rs/latest/tiktoken_rs/struct.CoreBPE.html#method.new) of tiktoken_rs, which we also import. That crate has a PR to upgrade its dependency [here](https://github.com/zurawiki/tiktoken-rs/pull/95) but that has not been merged. Alternatives here are: 1. Fork tiktoken_rs. This seems worse. 2. It... #119

cargo vendor 🚚 on - third party: Upgrade rustc_hash Summary: To 2.1 Unfortunately, I can't remove the old version of the crate. The problem is that it appears in the [public API](https://docs.rs/tiktoken-rs/latest/tiktoken_rs/struct.CoreBPE.html#method.new) of tiktoken_rs, which we also import. That crate has a PR to upgrade its dependency [here](https://github.com/zurawiki/tiktoken-rs/pull/95) but that has not been merged. Alternatives here are: 1. Fork tiktoken_rs. This seems worse. 2. It...

cargo vendor 🚚 on - third party: Upgrade rustc_hash Summary: To 2.1 Unfortunately, I can't remove the old version of the crate. The problem is that it appears in the [public API](https://docs.rs/tiktoken-rs/latest/tiktoken_rs/struct.CoreBPE.html#method.new) of tiktoken_rs, which we also import. That crate has a PR to upgrade its dependency [here](https://github.com/zurawiki/tiktoken-rs/pull/95) but that has not been merged. Alternatives here are: 1. Fork tiktoken_rs. This seems worse. 2. It... #119

Workflow file for this run

on:
push:
branches:
- main
name: cargo vendor and commit
run-name: cargo vendor 🚚 on - ${{ github.event.head_commit.message }}
jobs:
cargo_vendor:
runs-on: ubuntu-latest
steps:
- name: Delete release branch
uses: dawidd6/action-delete-branch@v3
with:
soft_fail: true # set to true so that if the branch doesn't exist action doesnt fail
branches: release
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- run: cargo vendor vendor_external
- name: Create .cargo dir
run: |
mkdir -p .cargo
- name: Create cargo config
shell: bash
run: |
cat << EOF > .cargo/config.toml
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor_external"
EOF
- name: commit to 'new' release branch
uses: EndBug/add-and-commit@v9.1.1
with:
new_branch: release
author_name: GitHub Action
author_email: action@github.com