Skip to content

chore(local-mounts): 🔧 update sync logic and improve documentation#17

Merged
baxyz merged 2 commits intomainfrom
fix-mount-again
Apr 8, 2026
Merged

chore(local-mounts): 🔧 update sync logic and improve documentation#17
baxyz merged 2 commits intomainfrom
fix-mount-again

Conversation

@baxyz
Copy link
Copy Markdown
Contributor

@baxyz baxyz commented Apr 8, 2026

  • move file sync to runtime via postStartCommand
  • add sync fallback script for shell startup
  • enhance README and test scripts for clarity

Description

Please include a summary of what this PR does and why it's needed.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring
  • Test improvement

Related Issues

Closes #(issue number)

How Has This Been Tested?

Describe the tests you ran and how to reproduce them:

  • Test A
  • Test B

Checklist

  • My code follows the code style of this project
  • I have updated the documentation accordingly
  • I have added tests for my changes
  • All new and existing tests passed locally
  • My commits follow the conventional commit format

Screenshots (if applicable)

Add screenshots for UI changes.

Additional Context

Add any other context about the PR here.

- move file sync to runtime via postStartCommand
- add sync fallback script for shell startup
- enhance README and test scripts for clarity
Copilot AI review requested due to automatic review settings April 8, 2026 18:53
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

✅ PR Validation Passed

All checks passed!


📋 Pipeline Status

Job Status
🧾 Conventional Commits passing
🧪 Feature Tests passing
🐚 ShellCheck passing

🤖 Generated by @helpers4 CI • 2026-04-08

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the local-mounts devcontainer feature to sync host-mounted dotfiles at container runtime (when bind mounts are actually present), and updates documentation/tests to match the new architecture.

Changes:

  • Add runtime sync script (sync-files.sh) and run it via postStartCommand.
  • Refactor install.sh to do build-time directory scaffolding + install profile.d fallback scripts.
  • Update README and test/local-mounts/test.sh to validate the new behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/local-mounts/test.sh Updates the feature test to validate build-time scaffolding, installed scripts, and basic runtime sync execution.
src/local-mounts/sync-files.sh Adds the runtime sync implementation that copies staged mounts into the target user’s home directory.
src/local-mounts/README.md Documents the new “build-time scaffolding + runtime sync + profile.d fallback” architecture and version history.
src/local-mounts/install.sh Removes build-time sync logic; now creates directories/files, installs runtime sync + profile.d scripts, and writes config.
src/local-mounts/devcontainer-feature.json Bumps version to 1.0.9 and adds postStartCommand to run the runtime sync script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@baxyz baxyz merged commit fa7c094 into main Apr 8, 2026
21 checks passed
@baxyz baxyz deleted the fix-mount-again branch April 8, 2026 19:28
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.

2 participants