Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecated fields support #89

Merged
merged 1 commit into from
Oct 11, 2024

Add deprecated fields support

f5abee8
Select commit
Loading
Failed to load commit list.
Merged

Add deprecated fields support #89

Add deprecated fields support
f5abee8
Select commit
Loading
Failed to load commit list.
Garnix CI / package default [x86_64-linux] succeeded Oct 10, 2024 in 56s

Run results

Build succeeded

Details

Last 100 lines of logs:

[5 of 9] Compiling Moat.Pretty.Doc.DocC ( src/Moat/Pretty/Doc/DocC.hs, dist/build/Moat/Pretty/Doc/DocC.o, dist/build/Moat/Pretty/Doc/DocC.dyn_o )
[6 of 9] Compiling Moat.Pretty.Swift ( src/Moat/Pretty/Swift.hs, dist/build/Moat/Pretty/Swift.o, dist/build/Moat/Pretty/Swift.dyn_o )
[7 of 9] Compiling Moat.Class       ( src/Moat/Class.hs, dist/build/Moat/Class.o, dist/build/Moat/Class.dyn_o )
[8 of 9] Compiling Moat             ( src/Moat.hs, dist/build/Moat.o, dist/build/Moat.dyn_o )
[9 of 9] Compiling Paths_moat       ( dist/build/autogen/Paths_moat.hs, dist/build/Paths_moat.o, dist/build/Paths_moat.dyn_o )
[1 of 9] Compiling Moat.Pretty.Doc.Markdown ( src/Moat/Pretty/Doc/Markdown.hs, dist/build/Moat/Pretty/Doc/Markdown.p_o )
[2 of 9] Compiling Moat.Types       ( src/Moat/Types.hs, dist/build/Moat/Types.p_o )
[3 of 9] Compiling Moat.Pretty.Doc.KDoc ( src/Moat/Pretty/Doc/KDoc.hs, dist/build/Moat/Pretty/Doc/KDoc.p_o )
[4 of 9] Compiling Moat.Pretty.Kotlin ( src/Moat/Pretty/Kotlin.hs, dist/build/Moat/Pretty/Kotlin.p_o )
[5 of 9] Compiling Moat.Pretty.Doc.DocC ( src/Moat/Pretty/Doc/DocC.hs, dist/build/Moat/Pretty/Doc/DocC.p_o )
[6 of 9] Compiling Moat.Pretty.Swift ( src/Moat/Pretty/Swift.hs, dist/build/Moat/Pretty/Swift.p_o )
[7 of 9] Compiling Moat.Class       ( src/Moat/Class.hs, dist/build/Moat/Class.p_o )
[8 of 9] Compiling Moat             ( src/Moat.hs, dist/build/Moat.p_o )
[9 of 9] Compiling Paths_moat       ( dist/build/autogen/Paths_moat.hs, dist/build/Paths_moat.p_o )
buildPhase completed in 40 seconds
@nix {"action":"setPhase","phase":"checkPhase"}
running tests
Running 1 test suites...
Test suite spec: RUNNING...

DeprecatedField
  stays golden
    swift [✔]
      Golden and Actual output didn't change
fromList [("field1",Just "Deprecated since build 500")]
"field0"
[Field {fieldName = "field0", fieldType = I, fieldDoc = Nothing},Field {fieldName = "field1", fieldType = Optional I, fieldDoc = Nothing}]
[Field {fieldName = "field1", fieldType = Optional I, fieldDoc = Nothing}]
fromList [("field1",Just "Deprecated since build 500")]
"field1"
[Field {fieldName = "field0", fieldType = I, fieldDoc = Nothing},Field {fieldName = "field1", fieldType = Optional I, fieldDoc = Nothing}]
[]
"test"
    kotlin [✔]
      Golden and Actual output didn't change

Finished in 0.0005 seconds
2 examples, 0 failures
Test suite spec: PASS
Test suite logged to: dist/test/moat-0.1-spec.log
1 of 1 test suites (1 of 1 test cases) passed.
@nix {"action":"setPhase","phase":"haddockPhase"}
haddockPhase
Preprocessing test suite 'spec' for moat-0.1..
Preprocessing library for moat-0.1..
Running Haddock on library for moat-0.1..
Warning: --source-* options are ignored when --hyperlinked-source is enabled.
Warning: '()' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'getMoat' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'getMoatWithTags' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'Ty' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'decode' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'prettySwiftType' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'ToMoatType' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'ToMoatData' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'rawValue' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'strictFields' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'Ty' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'SwiftData' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'Ty' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'mobileGen' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'mobileGenWith' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
Warning: 'strictFields' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
  93% ( 56 / 60) in 'Moat'
  Missing documentation for:
    Interface (src/Moat/Types.hs:246)
    Annotation (src/Moat/Types.hs:262)
    SumOfProductEncodingOptions (src/Moat/Types.hs:477)
    KeepOrDiscard (src/Moat/Types.hs:594)
Documentation created: dist/doc/html/moat/index.html,
dist/doc/html/moat/moat.txt
@nix {"action":"setPhase","phase":"installPhase"}
installing
Installing library in /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1/lib/ghc-9.6.3/lib/x86_64-linux-ghc-9.6.3/moat-0.1-3P8SNN78TAh9u2If9LLGtA
@nix {"action":"setPhase","phase":"fixupPhase"}
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1
shrinking /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1/lib/ghc-9.6.3/lib/x86_64-linux-ghc-9.6.3/libHSmoat-0.1-3P8SNN78TAh9u2If9LLGtA-ghc9.6.3.so
checking for references to /build/ in /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1...
patching script interpreter paths in /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1
stripping (with command strip and flags -S -p) in  /nix/store/dnqs7z2d8fsamz7cwny4w6n4xh1kjg16-moat-0.1/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/z3b6wp3ipbniqv8v726djnwbc8l1j6c9-moat-0.1-doc
checking for references to /build/ in /nix/store/z3b6wp3ipbniqv8v726djnwbc8l1j6c9-moat-0.1-doc...
patching script interpreter paths in /nix/store/z3b6wp3ipbniqv8v726djnwbc8l1j6c9-moat-0.1-doc