You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ install_from_tarball
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2018-12-31T19:00:57Z
CallStack (from HasCallStack):
die', called at ./Distribution/Client/TargetSelector.hs:701:9 in main:Distribution.Client.TargetSelector
cabal: Unrecognised target '../dist-newstyle/sdist/Cabal-2.5.0.0.tar.gz'.
Expected a meta-target 'all' or component kind filter or component name or
package name or package directory or package .cabal file or component name or
module name or file, rather than
'../dist-newstyle/sdist/Cabal-2.5.0.0.tar.gz'.
typedrat
changed the title
cabal install FILE fails when path starts with ..cabal install FILE fails when path doesn't start with a letter
Dec 31, 2018
$ install_from_tarball
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2018-12-31T20:27:18Z
CallStack (from HasCallStack):
die', called at ./Distribution/Client/TargetSelector.hs:701:9 in main:Distribution.Client.TargetSelector
cabal: Unrecognised target
'/home/travis/build/haskell/cabal/dist-newstyle/sdist/Cabal-2.5.0.0.tar.gz'.
Expected a meta-target 'all' or component kind filter or component name or
package name or package directory or package .cabal file or component name or
module name or file, rather than
'/home/travis/build/haskell/cabal/dist-newstyle/sdist/Cabal-2.5.0.0.tar.gz'.
Honestly not sure how to fix this. Should we change how file targets work, or just add a filter that checks for tarball arguments before we even go down that road?
I've got other errors in windows with cabal-install-3.4.0.0
PS D:\dev\ws\haskell\cabal-test\tmp> cabal install ..\dist-newstyle\sdist\cabal-test-0.1.0.0.tar.gz
cabal-3.4.0.0.exe: Invalid package ID:
..\dist-newstyle\sdist\cabal-test-0.1.0.0.tar.gz
"<eitherParsec>" (line 1, column 3):
unexpected all digits or a dot in a portion of package name
expecting "-"
PS D:\dev\ws\haskell\cabal-test\tmp> cd ..
PS D:\dev\ws\haskell\cabal-test> cabal install dist-newstyle\sdist\cabal-test-0.1.0.0.tar.gz
cabal-3.4.0.0.exe: Unknown target
'dist-newstyle\sdist\cabal-test-0.1.0.0.tar.gz'.
The package cabal-test has no file target
'dist-newstyle\sdist\cabal-test-0.1.0.0.tar.gz'.
Uh oh!
There was an error while loading. Please reload this page.
Discovered bugsquashing for #5800.
The text was updated successfully, but these errors were encountered: