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

Trying to compile and build locally #134

Open
TheMiniDriver opened this issue Jun 24, 2023 · 7 comments
Open

Trying to compile and build locally #134

TheMiniDriver opened this issue Jun 24, 2023 · 7 comments

Comments

@TheMiniDriver
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

I give up:

@cagrimes
Copy link

% 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
Copy link
Author

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

@cagrimes
Copy link

cagrimes commented Jul 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants