strongdm / comply

Compliance automation framework, focused on SOC2
https://comply.strongdm.com
Apache License 2.0
1.29k stars 245 forks source link

Trying to compile and build locally #134

Open TheMiniDriver opened 1 year ago

TheMiniDriver commented 1 year ago

Hi,

I'm trying to build locally so that I can make some changes, mainly allowing choosing of the latex engine, as I want to enable custom fonts and add in colours.

If I run the command under the "Forking and local development" section:

go get github.com/strongdm/comply

I get an error:

go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

If I try just clone the repo and run make, I get:

go install -mod=vendor github.com/containous/go-bindata/go-bindata go install -mod=vendor github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs go-bindata-assetfs -pkg theme -prefix themes themes/... make: go-bindata-assetfs: No such file or directory make: *** [assets] Error 1

I'm using go version: go1.20.2 darwin/arm64

Any pointers welcome, thanks!

cagrimes commented 1 year ago

Write a python script. Yeah, I tried in vain and got the same errors. The app was written in a much older, 1.x, version of golang and I guess the newer dependancies don't play well with the older golang version. Every "fix" created a new error. You can add LaTeX formatting within the markdown that will (should) allow colors, fonts, etc., to be included in the final pdf. We just finished our SOC 2 audit and I created the policies using the comply app. My next year plan is to develop a LaTeX template and complete a python script I started to read the md files then create the pdf using my template (versus default.latex) and use a combination of the template and embedded latex formatting in the markdown. Unfortunately, this project is not longer being maintained by StrongDM. You'd have to signup for their commercial platform.

TheMiniDriver commented 1 year ago

Thanks, good to know there is other interest in this little tool. I managed to get it going eventually by not following the README, but just running go build . This seemed to work to output an executable. I then could make a mode that reads the colors, fonts and a logo from the comply.yml file, so it doesn't need to be set in each markdown file.

I may make a fork if this tool is no longer supported by StrongDM. Looks like it should be OK based on the license file.

cagrimes commented 1 year ago

Thanks. I'll give that a try. Yeah, I'd prefer not to embed latex in every document, but it does work. If you fork this let me know. You won't be the first to fork, there are several, but none I've seen that actually modifies to add colors, fonts, logo, etc.

cagrimes commented 1 year ago

I give up:

cagrimes commented 1 year ago

% go build github.com/strongdm/comply no required module provides package github.com/strongdm/comply: go.mod file not found in current directory or any parent directory; see 'go help modules' iass-vm@iass-vm ~ %

TheMiniDriver commented 1 year ago

I cloned the repo, then ran go build in the directory. (without the github.com/strongdm/comply as in yours above)

cagrimes commented 1 year ago

Ah-ha. That worked.Sent from my iPhoneOn Jul 20, 2023, at 11:52, Bradley Van Aardt @.***> wrote: I cloned the repo, then ran go build in the directory. (without the github.com/strongdm/comply as in yours above)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>