[Hackage] #867: sudo cabal update doesn't use http_proxy

Hackage cvs-ghc at haskell.org
Wed Aug 3 00:13:39 CEST 2011


#867: sudo cabal update doesn't use http_proxy
---------------------------------+------------------------------------------
  Reporter:  guest               |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.8.0.6
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:                      |  
---------------------------------+------------------------------------------

Comment(by guest):

 I do not believe that this is cabal-install's fault -- {{{sudo}}} clears
 the environment by default. Try
 {{{
 sudo -E cabal install ...
 }}}
 instead. (Not guaranteed to work; it depends on the sudo configuration).
 You can check the effect using
 {{{
 sudo env
 sudo -E env
 }}}

 For example, I get
 {{{
 > env | wc -l
 55
 > sudo env | wc -l
 17
 > sudo -E env | wc -l
 56
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/867#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list