Skip to content
Snippets Groups Projects
Commit ad2c53f4 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Add test for #6083, build-depends: pkg:pkg

I'm adding this test, so we dont' silently change the behaviour
for `cabal-version: 3.0`
parent b4f3abf3
No related branches found
No related tags found
No related merge requests found
...@@ -167,6 +167,9 @@ extra-source-files: ...@@ -167,6 +167,9 @@ extra-source-files:
tests/ParserTests/regressions/issue-5846.cabal tests/ParserTests/regressions/issue-5846.cabal
tests/ParserTests/regressions/issue-5846.expr tests/ParserTests/regressions/issue-5846.expr
tests/ParserTests/regressions/issue-5846.format tests/ParserTests/regressions/issue-5846.format
tests/ParserTests/regressions/issue-6083-pkg-pkg.cabal
tests/ParserTests/regressions/issue-6083-pkg-pkg.expr
tests/ParserTests/regressions/issue-6083-pkg-pkg.format
tests/ParserTests/regressions/issue-774.cabal tests/ParserTests/regressions/issue-774.cabal
tests/ParserTests/regressions/issue-774.check tests/ParserTests/regressions/issue-774.check
tests/ParserTests/regressions/issue-774.expr tests/ParserTests/regressions/issue-774.expr
......
...@@ -166,6 +166,7 @@ regressionTests = testGroup "regressions" ...@@ -166,6 +166,7 @@ regressionTests = testGroup "regressions"
, regressionTest "wl-pprint-indef.cabal" , regressionTest "wl-pprint-indef.cabal"
, regressionTest "th-lift-instances.cabal" , regressionTest "th-lift-instances.cabal"
, regressionTest "issue-5055.cabal" , regressionTest "issue-5055.cabal"
, regressionTest "issue-6083-pkg-pkg.cabal"
, regressionTest "noVersion.cabal" , regressionTest "noVersion.cabal"
, regressionTest "spdx-1.cabal" , regressionTest "spdx-1.cabal"
, regressionTest "spdx-2.cabal" , regressionTest "spdx-2.cabal"
......
cabal-version: 3.0
name: issue
version: 6083
library
default-language: Haskell2010
-- This should be parsed as the main lib
build-depends: freetype
build-depends: freetype:freetype
GenericPackageDescription
{condBenchmarks = [],
condExecutables = [],
condForeignLibs = [],
condLibrary = Just
CondNode
{condTreeComponents = [],
condTreeConstraints = [Dependency
`PackageName "freetype"`
AnyVersion
(Set.fromList [LMainLibName]),
Dependency
`PackageName "freetype"`
AnyVersion
(Set.fromList [LMainLibName])],
condTreeData = Library
{exposedModules = [],
libBuildInfo = BuildInfo
{asmOptions = [],
asmSources = [],
autogenIncludes = [],
autogenModules = [],
buildToolDepends = [],
buildTools = [],
buildable = True,
cSources = [],
ccOptions = [],
cmmOptions = [],
cmmSources = [],
cppOptions = [],
customFieldsBI = [],
cxxOptions = [],
cxxSources = [],
defaultExtensions = [],
defaultLanguage = Just Haskell2010,
extraBundledLibs = [],
extraDynLibFlavours = [],
extraFrameworkDirs = [],
extraGHCiLibs = [],
extraLibDirs = [],
extraLibFlavours = [],
extraLibs = [],
frameworks = [],
hsSourceDirs = [],
includeDirs = [],
includes = [],
installIncludes = [],
jsSources = [],
ldOptions = [],
mixins = [],
oldExtensions = [],
options = PerCompilerFlavor [] [],
otherExtensions = [],
otherLanguages = [],
otherModules = [],
pkgconfigDepends = [],
profOptions = PerCompilerFlavor [] [],
sharedOptions = PerCompilerFlavor [] [],
staticOptions = PerCompilerFlavor [] [],
targetBuildDepends = [Dependency
`PackageName "freetype"`
AnyVersion
(Set.fromList
[LMainLibName]),
Dependency
`PackageName "freetype"`
AnyVersion
(Set.fromList
[LMainLibName])],
virtualModules = []},
libExposed = True,
libName = LMainLibName,
libVisibility = LibraryVisibilityPublic,
reexportedModules = [],
signatures = []}},
condSubLibraries = [],
condTestSuites = [],
genPackageFlags = [],
packageDescription = PackageDescription
{author = "",
benchmarks = [],
bugReports = "",
buildTypeRaw = Nothing,
category = "",
copyright = "",
customFieldsPD = [],
dataDir = "",
dataFiles = [],
description = "",
executables = [],
extraDocFiles = [],
extraSrcFiles = [],
extraTmpFiles = [],
foreignLibs = [],
homepage = "",
library = Nothing,
licenseFiles = [],
licenseRaw = Left NONE,
maintainer = "",
package = PackageIdentifier
{pkgName = `PackageName "issue"`,
pkgVersion = `mkVersion [6083]`},
pkgUrl = "",
setupBuildInfo = Nothing,
sourceRepos = [],
specVersionRaw = Left `mkVersion [3,0]`,
stability = "",
subLibraries = [],
synopsis = "",
testSuites = [],
testedWith = []}}
cabal-version: 3.0
name: issue
version: 6083
library
default-language: Haskell2010
build-depends:
freetype -any,
freetype -any
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment