Skip to content

remotefs.OS Chown, Touch, DownloadURL, FileContains, IsContainer#318

Merged
kke merged 1 commit into
mainfrom
remotefs-os-additions
Apr 23, 2026
Merged

remotefs.OS Chown, Touch, DownloadURL, FileContains, IsContainer#318
kke merged 1 commit into
mainfrom
remotefs-os-additions

Conversation

@kke
Copy link
Copy Markdown
Contributor

@kke kke commented Apr 22, 2026

Part of the rig v2 last-mile effort, breaking API is not an issue, v2 has not been released yet.

@kke kke added the enhancement New feature or request label Apr 22, 2026
@kke kke requested a review from Copilot April 22, 2026 10:35
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

Adds several last-mile remotefs.OS API additions/changes for rig v2 to support richer remote filesystem operations across POSIX and Windows implementations.

Changes:

  • Change OS.Chown to accept an owner string (e.g., user:group) instead of numeric uid/gid.
  • Extend OS.Touch to accept an optional timestamp, and add DownloadURL, FileContains, and IsContainer to remotefs.OS.
  • Update Windows/POSIX FS implementations and the upload_test stub to satisfy the expanded interface; add repo-level context in CLAUDE.md.

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
remotefs/winfs.go Updates Touch signature; adds DownloadURL, FileContains, IsContainer; adjusts Chown signature.
remotefs/posixfs.go Updates Touch and Chown signatures; adds DownloadURL, FileContains, IsContainer; introduces errNoDownloadTool.
remotefs/types.go Extends remotefs.OS interface with new methods and signature changes.
remotefs/upload_test.go Updates the uploadFS stub to satisfy the new remotefs.OS interface.
CLAUDE.md Adds repository/v2 architecture and migration notes including the new remotefs.OS API surface.

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

Comment thread remotefs/posixfs.go Outdated
Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/winfs.go
Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/posixfs.go Outdated
@kke kke force-pushed the remotefs-os-additions branch from 90126f6 to b7a06de Compare April 22, 2026 11:32
@kke kke requested a review from Copilot April 22, 2026 11:33
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

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


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

Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/posixfs.go Outdated
Comment thread CLAUDE.md Outdated
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

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


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

Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/posixfs.go Outdated
Comment thread remotefs/posixfs.go Outdated
Comment thread remotefs/posixfs.go
Comment thread remotefs/winfs.go
@kke kke force-pushed the remotefs-os-additions branch from c42438e to f442e56 Compare April 22, 2026 12:23
@kke kke requested a review from Copilot April 22, 2026 12:23
@kke kke changed the title remotefs.OS additions: Chown, Touch, DownloadURL, FileContains, IsContainer remotefs.OS Chown, Touch, DownloadURL, FileContains, IsContainer Apr 22, 2026
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

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


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

Comment thread remotefs/winfs.go Outdated
Comment thread remotefs/posixfs.go
@kke kke force-pushed the remotefs-os-additions branch from f442e56 to 382355c Compare April 22, 2026 12:48
@kke kke requested a review from Copilot April 22, 2026 13:04
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

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


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

Comment thread remotefs/winfs.go
Comment thread remotefs/winfs.go Outdated
@kke kke force-pushed the remotefs-os-additions branch from 382355c to 2256237 Compare April 22, 2026 13:23
@kke kke requested a review from Copilot April 22, 2026 13:24
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

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


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

Comment thread remotefs/posixfs.go Outdated
@kke kke requested a review from Copilot April 23, 2026 06:21
@kke kke force-pushed the remotefs-os-additions branch from 2256237 to 1c53fb4 Compare April 23, 2026 06:21
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

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


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

Comment thread remotefs/winfs.go
Comment thread remotefs/winfs.go
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

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


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

…leContains, IsContainer

Part of the rig v2 last-mile effort, breaking API is not an issue, v2
has not been released yet.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke force-pushed the remotefs-os-additions branch from 1c53fb4 to f185b1d Compare April 23, 2026 07:19
@kke kke requested a review from Copilot April 23, 2026 07:20
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

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


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

@kke kke merged commit 4179989 into main Apr 23, 2026
15 checks passed
@kke kke deleted the remotefs-os-additions branch April 23, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants