Hello, with the new 5.3.5 version,I have these errors now.
At least for the two first I know that I need to add the dependencies to the executable. but for the last one, I do not know how to proceed properly.
Cheers
Building executable 'propellor-config' for propellor-5.3.5..
[1 of 1] Compiling Main ( executables/propellor-config.hs, dist/build/propellor-config/propellor-config-tmp/Main.o )
executables/propellor-config.hs:14:1-25: error:
Could not find module ‘System.Posix.Files’
Perhaps you meant System.Posix.Types (from base-4.10.1.0)
Use -v to see a list of the files searched for.
|
14 | import System.Posix.Files
| ^^^^^^^^^^^^^^^^^^^^^^^^^
executables/propellor-config.hs:15:1-66: error:
Could not find module ‘System.FilePath.Posix’
Use -v to see a list of the files searched for.
|
15 | import System.FilePath.Posix ((</>), dropExtension, takeDirectory)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
executables/propellor-config.hs:28:1-23: error:
Could not find module ‘Utility.FileMode’
it is a hidden module in the package ‘propellor-5.3.5’
Use -v to see a list of the files searched for.
|
28 | import Utility.FileMode
| ^^^^^^^^^^^^^^^^^^^^^^^
HsCompilation exited abnormally with code 1 at Sun Apr 29 09:35:08
Seems this must be caused by d8d2faece72eabd18c2ff303e5fb63c3a69961f6
And I guess you've modified the config.hs in propellor for your own systems?
You will indeed need to add dependencies to the cabal stanza for propellor-config.
I think that you may be able to add Other-Modules: Utility.FileMode to the cabal stanza for propellor-config and get access to the unexported module that way. Not 100% sure.
I'm curious: Is there part of propellor's published modules that made you need something from Utility.FileMode to use it, or were you writing your own property and happened to use something from Utility.FileMode?
Do you think that I should use a dedicated config-soleil.hs file instead of the config.hs file ?
I use the combinesModes in order to set the right mode.
+rra :: Property UnixLike +rra = fetch
onChange
execmode+
I don't think you need to use a different name for your config file, unless it somehow makes things easier for you.
It's fine to use
Utility.*
like that, but do note that there's no guaranteed API stability for those. OTOH, if you might later contribute some properties built usingUtility.*
back to propellor, it certianly makes sense to use those.