Skip to content

Make install.md Step 3 cross-platform (drop git clone)#58

Open
Copilot wants to merge 3 commits intomainfrom
copilot/optimize-step3-clone-autoloop
Open

Make install.md Step 3 cross-platform (drop git clone)#58
Copilot wants to merge 3 commits intomainfrom
copilot/optimize-step3-clone-autoloop

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

Step 3 of install.md used git clone plus bash-only cp/mkdir -p//tmp, which doesn't work on Windows and pulls full git history unnecessarily.

Changes to install.md Step 3

  • Switched from git clone to a zip download. Removes the git dependency and avoids downloading .git history.
  • Split into two snippets, each in a collapsible <details> block:
    • Linux/macOS: curl + unzip, with a tar -xf fallback noted for minimal images that lack unzip.
    • Windows (PowerShell): Invoke-WebRequest + Expand-Archive, using $env:TEMP instead of /tmp.
  • Added a version-pinning note describing how to swap refs/heads/main for refs/tags/<tag>.
  • Used cp -R src/. dst/ (rather than src/*) so hidden files would be copied if any are ever added, and to avoid glob edge cases.

Example (Linux/macOS)

curl -fL https://github.com/githubnext/autoloop/archive/refs/heads/main.zip -o /tmp/autoloop.zip
unzip -q /tmp/autoloop.zip -d /tmp/autoloop_extract
mkdir -p .github/workflows .github/ISSUE_TEMPLATE .autoloop/programs
cp -R /tmp/autoloop_extract/autoloop-main/workflows/. .github/workflows/
cp -R /tmp/autoloop_extract/autoloop-main/.github/ISSUE_TEMPLATE/. .github/ISSUE_TEMPLATE/
rm -rf /tmp/autoloop.zip /tmp/autoloop_extract

Notes / trade-offs

  • Both snippets track the default branch, matching prior behavior; the new note documents how to pin a tag.
  • Verified the bash snippet end-to-end: .github/workflows/ (including shared/ and scripts/), .github/ISSUE_TEMPLATE/autoloop-program.md, and .autoloop/programs/ are populated as expected. PowerShell snippet was not executed in this environment.

Copilot AI changed the title [WIP] Optimize Step 3: Clone Autoloop and copy files for install.md Make install.md Step 3 cross-platform (drop git clone) Apr 30, 2026
Copilot AI requested a review from mrjf April 30, 2026 15:20
Copilot finished work on behalf of mrjf April 30, 2026 15:20
@mrjf mrjf marked this pull request as ready for review April 30, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize Step3: Clone Autoloop and Copy Files for install.md

2 participants