dub
                                
                                 dub copied to clipboard
                                
                                    dub copied to clipboard
                            
                            
                            
                        dub master cannot be built by older compilers
The stable branch can be built by compilers based on 2.076.x (i.e: gdc-11). But master fails to build with anything younger than 2.099.x.
dmd 2.098:
source/dub/dub.d(746): Error: expression expected, not `throw`
source/dub/dub.d(746): Error: found `new` when expecting `)` following template argument list
source/dub/dub.d(746): Error: semicolon expected following auto declaration, not `Exception`
source/dub/dub.d(747): Error: expression expected, not `)`
I don't think we should support v2.076, but we should support the last 10 versions. That looks like a rather simple fix.
It's not a simple fix. Since we are using std.sumtype, which is in Phobos only since v2.097.0, it creates a lot of issues.
Using dyaml.stdsumtype leads to other problems.
Hack it with -mv?
Using
dyaml.stdsumtypeleads to other problems.
-mv is never the answer. And as I mentioned:
Using
dyaml.stdsumtypeleads to other problems.
2.097 and above is still better than 2.099 and above. Probably worth just going with that and putting
frontend=">=2.097"
In the dub.sdl
DMD nightly builds are the latest victim of this issue.
https://github.com/dlang/dmd/actions/workflows/nightlies.yml
source/dyaml/stdsumtype.d(235): Error: module `spec` is in file 'std/format/spec.d' which cannot be read
import path[0] = /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmp.Ov5XR4/clones/dub/source