Code Monkey home page Code Monkey logo

Comments (10)

Profpatsch avatar Profpatsch commented on July 30, 2024

We don’t support that yet, but it’s a good feature request.

We deprecated lorri shell and are focusing on direnv (which does the environment setup), so I guess you’d have to integrate it with direnv, or clean the environment at the beginning of your .envrc.

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

I’d tentatively close this for now and recommend that one just runs nix-shell --pure manually if that’s a required use-case.

from lorri.

adrian-gierakowski avatar adrian-gierakowski commented on July 30, 2024

are there any particular reason why this should be closed? Is it because it would be difficult to implement or is it because its trivial to "clean the environment at the beginning of your .envrc"? If the latter then maybe that should be documented in then Readme? Personally I'd love to be able to use lorr's features with a pure shell sometimes.

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

Personally I'd love to be able to use lorr's features with a pure shell sometimes.

What’s your exact use-case there? Mostly to unset everything in the environment?

from lorri.

Pitometsu avatar Pitometsu commented on July 30, 2024

I’d tentatively close this for now and recommend that one just runs nix-shell --pure manually if that’s a required use-case.

But what about re-usage cached shell in way that lorri does?
Is it possible to re-use same shell like lorri currently does -- in editor, and in --pure way, but without re-calculation on each access -- in the terminal, as work shell itself?

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

@curiousleo can we do that with the revived lorri shell?

from lorri.

curiousleo avatar curiousleo commented on July 30, 2024

lorri shell does not currently support --pure. I'm not sure at the moment how difficult it would be to add it.

from lorri.

mogorman avatar mogorman commented on July 30, 2024

This would be really nice. I try to keep a clean dev environment and an option for running with nix-shell --pure automatically would help.

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

I'm not sure at the moment how difficult it would be to add it.

Pretty sure it’s just cleaning out the environment before loading the bash --rcfile as described by

lorri/src/ops/shell.rs

Lines 28 to 36 in 200f4a2

/// `lorri shell`
/// ├── builds the project environment if --cached is false
/// ├── writes a bash init script that loads the project environment
/// ├── SPAWNS bash with the init script as its `--rcfile`
/// │ └── EXECS `lorri internal start-user-shell`
/// │ ├── (*) performs shell-specific setup for $SHELL
/// │ └── EXECS into user shell $SHELL
/// │ └── interactive user shell
/// └── `lorri shell` terminates

from lorri.

l-d-s avatar l-d-s commented on July 30, 2024

For what it's worth, my use case is reproducible scientific research. Means I'd like to keep the development environments for certain projects hermetic.

from lorri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.