Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

GitBash and MinGW support #132

Closed
wants to merge 30 commits into from
Closed

GitBash and MinGW support #132

wants to merge 30 commits into from

Conversation

Merith-TK
Copy link
Contributor

@Merith-TK Merith-TK commented Aug 15, 2019

TL;DR

Summary of Edits

  • Fixed file pathing for windows client
  • Fixed ghost path creation on windows client
  • Added check to fix variables when using windows clients

Progress

Latest Build:

  • Resolving paths is now fully functional.
  • Ghost paths are no longer created on the client, (bug with patches to ensureDir()
  • The following formats now work for opening remote paths, /Workspace, Workspace, ~/Workspace, Workspace/
  • Code cleanup

@deansheather
Copy link
Member

Is this still being worked on? The hardcoded C:\mingw64 thing is still an issue. Would like to merge this soon.

Meanwhile, sshcode seems to work on WSL now other than a few small hiccups.

@Merith-TK
Copy link
Contributor Author

Merith-TK commented Sep 17, 2019

It is being worked on, i am slowly working on a home detector, see https://github.com/Merith-TK/Personal-Projects/blob/master/Home.go

Also school started a few weeks ago and i have been basically swamped. and i cant even test it at school during lunch because they blocked ssh... for some stupid reason

MOST RECENT PUSH FIXED THE ISSUE

@deansheather
Copy link
Member

In that case we should just add a section to the README which says what env variable to use depending on git bash or msys.

@Merith-TK
Copy link
Contributor Author

Merith-TK commented Apr 8, 2020

I still don't want to rewrite the entire path fixing function but I am working on it since the F***ing coronavirus has canceled my plans.
https://cdn.merith.tk/workspace/merith/go-sshcode/sshcode.go
2020-04-07 20:22:10 INFO Resolved windows path 'C:/msys64/Workspace' to '/msys64/Workspace
is where I am at at the moment,
What would be helpful is a command like winpath in wsl. because that thing you feed it a unix path, it will give the windows equivilant

EDIT, i am running sshcode.exe [email protected] --skipsync /Workspace

EDIT2: I am ready to throw my computer out the window
{ cd / && pwd -W; } | sed 's|/|\\|g' returns C:\Program Files\Git on gitbash
and C:\msys64\ on msys

@Merith-TK
Copy link
Contributor Author

one second, need to undo a personal modification

@Merith-TK
Copy link
Contributor Author

Don't know whats going on with the current Travis build for you guys, but the build for me is working...
https://travis-ci.org/github/Merith-TK/sshcode

@kylejbrk
Copy link

Any updates on this? Looking forward if this can run via Gitbash/Windows.

@Merith-TK
Copy link
Contributor Author

@kylejbrk

Any updates on this? Looking forward if this can run via Gitbash/Windows.

My fork is completely functional for gitbash, msys2, and mingw.
waiting on it to be merged

You can clone my repo in its current state and build it yourself if you like

@Merith-TK
Copy link
Contributor Author

Dont know what broke travis for you guys, but it passes on my end
https://travis-ci.org/github/Merith-TK/sshcode

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Some of my earlier reviews haven't been fixed properly.

@deansheather
Copy link
Member

Please re-request a review when you want this to be reviewed and merged. I don't read most of my github emails because I get too many, but I get a notification on slack if I'm requested for review.

@Merith-TK Merith-TK requested a review from deansheather April 18, 2020 18:42
@Merith-TK Merith-TK requested a review from deansheather April 20, 2020 20:03
@deansheather
Copy link
Member

I can't merge this automatically because of glitch with travis. The build passed on travis but didn't get reported to github. I'll squash and merge this manually tomorrow.

@Merith-TK
Copy link
Contributor Author

Alright, hope people find this useful!

deansheather added a commit that referenced this pull request Apr 27, 2020
Supports git bash and mingw on Windows. Does not support cmd.exe.

Signed-off-by: Dean Sheather <[email protected]>
Co-authored-by: Merith <[email protected]>
@deansheather
Copy link
Member

Squashed and merged via 50e859c

@Merith-TK Merith-TK deleted the msys-support branch May 2, 2020 22:51
@Merith-TK Merith-TK restored the msys-support branch May 2, 2020 22:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants