Created by: darko-poljak
@4nd3r I am starting to work on this. I will create a PR with first changes where we can further discuss this.
Created by: darko-poljak
Can you take a look at https://github.com/ungleich/cdist/compare/master...darko-poljak:shellcheck if you can spot some mistake prior to creating PR?
Created by: 4nd3r
woah, that's a big change! it'll take some time to scroll through it. will do.
Created by: darko-poljak
Hm... shellcheck can not check code that would be generated by gencode unless code is checked after it is generated. Guess this should be fixed when someone reports it.…
Created by: darko-poljak
@asteven Can you also take a look if you have time? Here https://github.com/ungleich/cdist/issues/518 will also be handled.
Created by: darko-poljak
We need to check code generation and fix as many as we notice. e.g.: __staged_file/gencode-remote generates code that uses mktemp --tmpdir, should be mktemp -p instead.
Created by: darko-poljak
@asteven For mktemp, POSIX does not specify mktemp utility. Also, -p is not defined for FreeBSD mktemp. TMPDIR env var is used for this, '/tmp' as default if not…
Created by: darko-poljak
For specific things, like apt types, which uses GNU version of find I think we do not need to port it to portable POSIX shell code, because apt is specific for debian-like…
Created by: 4nd3r
because apt is specific for debian-like GNU/Linux distros which have GNU tools by default
then we should add # shellcheck disable=<code> before that line.
Created by: darko-poljak
We can add Makefile target for shellcheck manifest and gencode-*. Although we won't be able to check code-* scripts.
Created by: darko-poljak
To coordinate, after resolving https://github.com/ungleich/cdist/pull/708 I will create PR for another fixes I am preparing,…
Created by: darko-poljak
@asteven @thriqon @tom-ee @telmich Good news! If I am right, #712 and #713 should be the last PRs regarding this issue :)
Created by: asteven
Nice work everyone. To be honest I expect some breakage. But we can just fix that along the way. I do think we should eat this dog food ourself for quite some time before…
Created by: telmich
That is an interesting question! We so far have not had that much and thus not the need for a solution, however we implemented __files lately (maybe a year ago) and maybe we…
Created by: darko-poljak
@uqam-fob Please join ungleich's cdist chat channel: https://brandnewchat.ungleich.ch/ungleich/channels/cdist, a place for main cdist discussion.
Created by: darko-poljak
@asteven @uqam-fob @telmich Perhaps this can be connected with this idea: https://github.com/ungleich/cdist/issues/512
Created by: antifob
@darko-poljak No offense, but no thanks, I am getting a heavy (many, many seconds) response time trying to hit the page, plus I won't receive a confirmation.
Anyways, #512…
Created by: darko-poljak
@pcoder I will take a look soon.