install: show cabal/stack versions and which is being used
This commit is contained in:
		
							parent
							
								
									98647ee6f2
								
							
						
					
					
						commit
						43fe86fabc
					
				| @ -750,6 +750,7 @@ ensure_stack() { | |||||||
|     echo "Installing stack" |     echo "Installing stack" | ||||||
|     do_os |     do_os | ||||||
|   fi |   fi | ||||||
|  |   echo "using stack $(stack --version)" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # get a sed command that supports EREs | # get a sed command that supports EREs | ||||||
| @ -809,7 +810,7 @@ quietly_run() { | |||||||
| # install but also all dependencies which are not in the specified stackage $RESOLVER. | # install but also all dependencies which are not in the specified stackage $RESOLVER. | ||||||
| try_install() { | try_install() { | ||||||
|   (cd  # avoid any project-specific stack/cabal config, install at user level |   (cd  # avoid any project-specific stack/cabal config, install at user level | ||||||
|    (! has_cmd stack && has_cmd cabal && try_info cabal install "$@" --verbose="$CABAL_VERBOSITY" ) || |    (! has_cmd stack && has_cmd cabal && echo "using $(cabal --version)" && try_info cabal install "$@" --verbose="$CABAL_VERBOSITY" ) || | ||||||
|    (ensure_stack && ( |    (ensure_stack && ( | ||||||
|     #(try_info stack install --install-ghc "$@" --verbosity=$STACK_VERBOSITY ) ||        # existing resolver |     #(try_info stack install --install-ghc "$@" --verbosity=$STACK_VERBOSITY ) ||        # existing resolver | ||||||
|     (try_info stack install --install-ghc $RESOLVER "$@" --verbosity="$STACK_VERBOSITY" )  # specific resolver |     (try_info stack install --install-ghc $RESOLVER "$@" --verbosity="$STACK_VERBOSITY" )  # specific resolver | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user