Skip to content

fix(backup): use compressed pubkey for the local backup name #1475

fix(backup): use compressed pubkey for the local backup name

fix(backup): use compressed pubkey for the local backup name #1475

Workflow file for this run

name: "Import Check"
permissions:
contents: read
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
check_messaging_imports:
name: Ensure no messaging/* imports outside messaging directory
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run messaging import check
run: |
echo "Finding all Go files outside the messaging and vendor directories..."
files=$(find . -type f -name '*.go' ! -path './messaging/*' ! -path './vendor/*')
echo "Checking for invalid imports of github.com/status-im/status-go/messaging/*..."
for file in $files; do
if grep -qE '"github.com/status-im/status-go/messaging/(?!types|events).+"' "$file"; then
echo "Error: File $file imports github.com/status-im/status-go/messaging/* (except types and events) which is not allowed."
exit 1
fi
done
echo "No invalid github.com/status-im/status-go/messaging/* imports found."