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

Difficulties in setting up local environment on Windows 11 #188

Open
phamduylong opened this issue Nov 27, 2023 · 3 comments
Open

Difficulties in setting up local environment on Windows 11 #188

phamduylong opened this issue Nov 27, 2023 · 3 comments

Comments

@phamduylong
Copy link

Hi 😄 Been having a hard time to get the project to run on my local machine. Some issues I found:

  1. Running bash scripts on Windows
    Running install.sh give out error on carriage return/line feed issues. Can be fixed easily but it would be nice to have a way to run it universally on all OS.

  2. Server spawn at server.js: 117

util.run(privilegedTeardown(), console.error).catch((err) => {
  console.error(err);
});

This gave an output of:

Error: spawn system/out/riju-system-privileged ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn system/out/riju-system-privileged',
  path: 'system/out/riju-system-privileged',
  spawnargs: [ 'teardown' ]
}
  1. Dep if I understood correctly is a deprecated project in Go for quite sometimes already, I cannot find a way to install it properly on Windows anymore.

Is there a possibilities to update instructions on how to get the project running? I would love to contribute on this project but it's impossible if I cannot get the project to run and test it. Thanks.

@raxod502
Copy link
Member

raxod502 commented Dec 2, 2023

The main branch as it currently stands isn't buildable - see #168. I'm in the middle of moving to Kubernetes orchestration which will (among other things) involve removing the pty wrapper binary, which is probably why the riju-system-privileged error comes up in particular.

You'd probably be best off starting from an older revision of the project (though those have other issues).

@phamduylong
Copy link
Author

Welp. I think the 1st and 3rd issues can still be resolved, especially with dep. Shouldn't have prematurely closed this issue.

@raxod502
Copy link
Member

raxod502 commented Dec 9, 2023

Dep if I understood correctly is a deprecated project in Go for quite sometimes already

Well, I will say that the dep command in Riju is another name for Depgraph, the Riju build tool, and it has nothing to do with the Go tool by the same name:

riju/doc/build.md

Lines 88 to 99 in 553d552

$ dep --help
Usage: dep <target>...
Options:
--list list available artifacts; ignore other arguments
--manual operate explicitly on manual artifacts
--hold-manual prefer local versions of manual artifacts
--all do not skip unneeded intermediate artifacts
--registry interface with remote registry for caching
--publish publish artifacts to remote registries
--yes execute plan without confirmation
-h, --help display help for command

Running install.sh give out error on carriage return/line feed issues

I don't think there are any whitespace issues with the shell scripts in the repo, if there are problems cropping up, they are probably the fault of Windows. Maybe the Git settings need to be adjusted so Windows does not mangle line endings - https://stackoverflow.com/q/10418975

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants