Cobbled-paths: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
(Created page with "``Wednesday September 25th`` Goal: Install https://gitlab.constantvzw.org/osp/tools.cobbled-paths on CC First remembering the documentation at: https://hub.vvvvvvaria.org/rosa/pads/rosa-log.raw.html Make a "cobbler" user on the server to run cobbled-paths with this user. In this way we can restrict the access of this user to the rest of the server. It's a way to make sure that the pads in octomode cannot be used to write code in a specific way, that it can be executed...")
 
No edit summary
Line 21: Line 21:
  $ sudo apt install rustc
  $ sudo apt install rustc


$ sudo cargo install svgbob_cli
$ sudo cargo install svgbob_cli


failed to parse the edition key
ERROR
 
<syntaxhighlight>
  Updating crates.io index
  Downloaded svgbob_cli v0.7.2
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob_cli-0.7.2/Cargo.toml`
 
Caused by:
  failed to parse the `edition` key
 
Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
 
</syntaxhighlight>

Revision as of 20:01, 25 September 2024

``Wednesday September 25th``

Goal: Install https://gitlab.constantvzw.org/osp/tools.cobbled-paths on CC

First remembering the documentation at: https://hub.vvvvvvaria.org/rosa/pads/rosa-log.raw.html

Make a "cobbler" user on the server to run cobbled-paths with this user. In this way we can restrict the access of this user to the rest of the server. It's a way to make sure that the pads in octomode cannot be used to write code in a specific way, that it can be executed on the server.

$ useradd --system --no-create-home --shell=/sbin/nologin cobbler

in /var/www/html/tools.cobbled-paths

$ chown -R octomode:www-data .
$ chmod -R g+rw
$ sudo mv /home/simon/.cargo/bin/* /usr/bin
$ sudo mv /home/simoon/.local/bin/* /usr/bin
$ sudo apt install rustc
$ sudo cargo install svgbob_cli

ERROR

  Updating crates.io index
  Downloaded svgbob_cli v0.7.2
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob_cli-0.7.2/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.