Skip to content

fix(type system): Fix function closures not correctly updating TypeState #22

fix(type system): Fix function closures not correctly updating TypeState

fix(type system): Fix function closures not correctly updating TypeState #22

name: Vector Integration Check
on:
pull_request:
branches: [ main ]
jobs:
check-vector:
runs-on: ubuntu-latest
steps:
- name: Checkout VRL
uses: actions/checkout@v4
with:
path: vrl
- uses: Swatinem/rust-cache@v2
- name: Install protoc
uses: arduino/setup-protoc@v3
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends \
build-essential \
cmake \
libclang-dev \
libsasl2-dev \
libssl-dev \
llvm \
pkg-config
- name: Clone Vector repo and update VRL dependency
run: |
git clone https://github.com/vectordotdev/vector.git
cd vector
git switch master
VRL_GITHUB_REPO="${{ github.event.pull_request.head.repo.full_name }}"
VRL_GITHUB_BRANCH="${{ github.head_ref }}"
REPLACEMENT_LINE="vrl = { git = \"https://github.com/${VRL_GITHUB_REPO}.git\", branch = \"${VRL_GITHUB_BRANCH}\" }"
sed -i.bak -e "/^vrl = {/c\\
$REPLACEMENT_LINE
" Cargo.toml
cargo update -p vrl
- name: Cargo Check Vector
run: |
cd vector
cargo update -p vrl
cargo check --workspace