Skip to content

add contrib/lockfile #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2025
Merged

add contrib/lockfile #255

merged 5 commits into from
Apr 25, 2025

Conversation

funkyshu
Copy link
Member

Fixes #254

@c2fo-cibot c2fo-cibot bot added the size/XL Denotes a PR that changes 500-999 lines label Apr 21, 2025
@c2fo-cibot c2fo-cibot bot added size/XXL Denotes a PR that changes 1000+ lines and removed size/XL Denotes a PR that changes 500-999 lines labels Apr 21, 2025
@funkyshu funkyshu requested a review from Copilot April 23, 2025 17:51
Copy link

@Copilot 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 introduces a new package (contrib/lockfile) that implements an advisory locking mechanism for VFS files along with corresponding tests and documentation. Key changes include adding the new lockfile package with its functions and tests, updating the README and related documentation, and renaming functions in the SFTP backend (e.g., getSShConfig to getSSHConfig) for consistency.

Reviewed Changes

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

Show a summary per file
File Description
utils/utils.go Added package-level documentation.
utils/authority/authority.go Updated comment text for consistency.
options/* Added package-level documentation.
contrib/lockfile/* New package implementation with tests and documentation.
backend/sftp/* Renamed functions (getSShConfig → getSSHConfig) and updated tests.
backend/ftp/, backend/azure/ Minor improvements and style updates.
.github/workflows/golangci-lint.yml Updated linter action version.

@funkyshu funkyshu merged commit 1114410 into main Apr 25, 2025
11 checks passed
@funkyshu funkyshu deleted the lockfile branch April 25, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Implement File Locking Mechanism
2 participants