Skip to content
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

Does not seem to build on Windows #1

Open
lonnietc opened this issue May 18, 2022 · 2 comments
Open

Does not seem to build on Windows #1

lonnietc opened this issue May 18, 2022 · 2 comments

Comments

@lonnietc
Copy link

Hello,

I wanted to test out Securetemp on Windows and it does not seem to build.

C:\goprojects\src\securetemp>go get -u github.com/leonklingele/securetemp
# github.com/leonklingele/securetemp
..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_unix.go:35:5: undefined: unix.Access
..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_unix.go:35:29: undefined: unix.W_OK
..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_unix.go:35:50: undefined: unix.Access
..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_unix.go:35:74: undefined: unix.X_OK
..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_windows.go:7:6: createRAMDisk redeclared in this block
        previous declaration at ..\..\pkg\mod\github.com\leonklingele\securetemp@v2.0.1+incompatible\securetemp_unix.go:21:52

Then

C:\goprojects\src\securetemp>go build cmd\securetemp\main.go
cmd\securetemp\main.go:10:2: no required module provides package github.com/leonklingele/securetemp: working directory is not part of a module

Using

C:\goprojects\src\securetemp>go version
go version go1.16 windows/amd64

Any ideas?

@leonklingele
Copy link
Owner

Hey @lonnietc, securetemp does not run on Windows as I was and am still lacking a proper Windows VM for development.
If you find the time, feel free to get it running yourself — take a look at the securetemp_windows.go file and see the other securetemp_*.go files as a reference.

@lonnietc
Copy link
Author

Hello @leonklingele

Thanks for getting back to me so quickly on this.

I am actually looking for a reasonable cross platform solution but Windows is not critical at the moment.

What I would like to do is to have something like SecureTemp to provide a good RAM disk and then copy a ZIP file into that space that I would mount into the application.

Effectively the zip file would be serving the files but from a ram disk on a Ubuntu 20.04 system for the first basic work.

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

No branches or pull requests

2 participants