Shell Dep !!better!! Download Access

A common "shell dep download" task is to bootstrap a more complex dependency manager. A great historical example is the installation of dep , the former official dependency management tool for Golang. The official install script for dep offers a masterclass in this process.

# .github/workflows/download-deps.yml name: Cache Dependencies on: push jobs: dep-download: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Cache dependencies id: cache-deps uses: actions/cache@v3 with: path: ./cached-deps key: $ runner.os -deps-$ hashFiles('requirements.txt') - name: Download deps if cache miss if: steps.cache-deps.outputs.cache-hit != 'true' run: | mkdir -p ./cached-deps pip download -r requirements.txt -d ./cached-deps shell dep download

Safe operating practices and design standards. A common "shell dep download" task is to