Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add MutagenSdk project#48

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 6 commits intomainfromdean/mutagen-sdk
Mar 11, 2025
Merged

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedMar 10, 2025
edited
Loading

Contains a gRPC client for mutagen's synchronization API.

All required .proto files are vendored using a new scriptUpdate-Proto.ps1, which finds all required files by scanningimport directives.

The vendored files are modified to addcsharp_namespace and a MIT license header from mutagen.

Example usage:

usingvarclient=newMutagenClient(@"C:\Users\dean\.mutagen");varres=awaitclient.Synchronization.ListAsync(newListRequest{Selection=newSelection{All=true,},});foreach(varstateinres.SessionStates)Console.WriteLine(state);

Closecoder/internal#378

Contains a gRPC client for mutagen's synchronization API.All required .proto files are vendored using a new script`Update-Proto.ps1`, which finds all required files by scanning `import`directives.The vendored files are modified to add `csharp_namespace` and a MITlicense header from mutagen.
@deansheatherdeansheather marked this pull request as ready for reviewMarch 10, 2025 03:58
Copy link
Collaborator

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

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

Few nits and suggestions inline

& git.exe clone `
--depth 1 `
--branch $mutagenTag `
"https://github.com/mutagen-io/mutagen.git" `
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use Coder's fork:https://github.com/coder/mutagen

Unfortunately, we are going to have to modify Mutagen and build our own releases to work around the SSH directory bug.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We don't have a v0.18.1 tag in our fork. We probably need to resync it so we get all of the tags etc.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Once we sort out the tags I'd be down to fix this in a follow up

if ($LASTEXITCODE -ne 0) { throw "Failed to checkout $mutagenTag" }
}
}
finally {
Copy link
Collaborator

Choose a reason for hiding this comment

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

man, PowerShell is so much nicer than bash

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

isn't the throw/try/catch/finally stuff just the best! I just wish they didn't go whole hog on making their own (usually worse) version of utilities that are available on Linux. At leastcurl.exe is available or I would cry

deansheatherand others added2 commitsMarch 11, 2025 00:42
Co-authored-by: Spike Curtis <spike@coder.com>
@deansheather
Copy link
MemberAuthor

@spikecurtis the Join-Path fix was added in Powershell 6.0 but Windows 11 ships with 5.1 (or at least that's what I have installed). It's like macos vs linux bash all over again

@deansheatherdeansheatherenabled auto-merge (squash)March 11, 2025 00:29
@deansheatherdeansheather merged commit8e6ec03 intomainMar 11, 2025
3 checks passed
@deansheatherdeansheather deleted the dean/mutagen-sdk branchMarch 11, 2025 00:30
ethanndickson added a commit to coder/coder-desktop-macos that referenced this pull requestMar 18, 2025
Closescoder/internal#379Much like incoder/coder-desktop-windows#48, this PR adds `mutagen-proto.sh` which finds all required files, following `import`s. Right now, we use this client to stop the daemon over gRPC.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

@ethanndicksonethanndicksonAwaiting requested review from ethanndickson

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add mutagen API client to coder-desktop-windows
2 participants
@deansheather@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp