Giter Site home page Giter Site logo

Comments (5)

andk avatar andk commented on July 21, 2024

Please add a sample what you mean to be printed wrongly. What do I have to do to see this bug?

from cpanpm.

 avatar commented on July 21, 2024

It's this line that's the problem:
https://github.com/andk/cpanpm/blob/master/lib/CPAN/FirstTime.pm#L1344

It should be giving us a list of environment variables and we're getting an
empty string instead.

To replicate, you need a to have no CPAN configuration and have a perl for
which you don't have write access. Running "cpan" the autoconfig should
ask if you want local::lib. If you say yes, at the end of the bootstrap is
says "here's what you need to put in your bashrc:" but then it shows
nothing.

from cpanpm.

haarg avatar haarg commented on July 21, 2024

I think I know what's going on here. When a local::lib directory is active (and the most recently activated), it won't re-add it to the environment variables it outputs. It also was meant to behave like that before the internals change, but my changes seem to have made it happen in more cases.

One easy fix would be to save the ->environment_vars_string_for output before setting the %ENV options. I'll probably made some changes to local::lib because of this though. Someone else at the QA hackathon requested that local::lib be less 'smart' in this regard.

from cpanpm.

 avatar commented on July 21, 2024

On Sat, Mar 29, 2014 at 4:21 PM, Graham Knop [email protected]:

One easy fix would be to save the ->environment_vars_string_for output
before setting the %ENV options. I'll probably made some changes to
local::lib because of this though. Someone else at the QA hackathon
requested that local::lib be less 'smart' in this regard.

Maybe it can be "optionally" smart/dumb.

David

David Golden [email protected] Twitter/IRC: @xdg

from cpanpm.

 avatar commented on July 21, 2024

I think this problem or a variation of it is back, per https://rt.cpan.org/Ticket/Display.html?id=103760

from cpanpm.

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.