Skip to content

Releases: AbsaOSS/golic

v0.4.1

17 Mar 09:20
Compare
Choose a tag to compare

skipping local .golic.yaml if doesn't exist
Screenshot 2021-03-17 at 10 20 08

v0.4.0

16 Mar 15:23
Compare
Choose a tag to compare

Golic uses master configuration by default.
The master configuration is accessible from the URL, and if you need to change it, use the -u flag or create PR.
However, it is much better to create a local configuration that overrides the master configuration settings. All
you have to do is create a .golic.yaml file in the project root, or use the -p flag.
Example below overrides master configuration by custom licenses

# .golic.yaml 
golic:
  licenses:
    apache2: |
      Copyright {{copyright}}

      This is my custom license text
    apacheX: |
      Copyright {{copyright}}
      for more details see https://github.com/mycompany/myproject/LICENSE

v0.3.1

16 Mar 09:44
Compare
Choose a tag to compare

Remove space from empty lines in injected license. Some IDE's removes them automatically, which causes issue during regeneration.

"# \n" -> "#\n"
"#\r \n" -> "#\r\n"

v0.3.0

15 Mar 12:16
Compare
Choose a tag to compare

golic configuration accepts rules in form of `Dockerfile*.

Dockerfile-gr-amd64
Dockerfile-gr-arm64
Dockerfile

It can license files above with one rule:

Dockerfile*:
  prefix: "#"

v0.2.0

12 Mar 09:31
Compare
Choose a tag to compare

A summary is provided at the end of each run for a quick overview

Screenshot 2021-03-12 at 10 30 32

v0.1.2

09 Mar 13:35
Compare
Choose a tag to compare

inject command implementation:

  • injects license into file filtered by .licignore.
  • it generates licenses based on configuration
  • configuration can be extended by PR or it can use custom configuration ( -u argument)
  • requires only copyright (-c) argument

Examples:

  • golic inject -c="2021 ABSA Group Limited" --dry
  • In case you don't have compiled version:
GO111MODULE=on GOSUMDB=off go get github.com/AbsaOSS/[email protected]
$(GOBIN)/golic inject -c="2021 MyCompany ltd." --dry

v0.1.1

09 Mar 11:35
Compare
Choose a tag to compare

inject command implementation:

  • injects license into file filtered by .licignore.
  • licenses are generated based on configuration
  • configuration can be extended by PR or custom configuration can be provided ( -u argument)

Examples:

  • golic inject -c="2021 ABSA Group Limited" -l=.licignore --dry

  • golic inject -c="2021 ABSA Group Limited" -l=.licignore -u=https://<something>/config.yaml

  • In case you don't have compiled version:

GO111MODULE=on GOSUMDB=off go get github.com/AbsaOSS/[email protected]
$(GOBIN)/golic inject -c="2021 MyCompany Group Limited" -l=.licignore --dry

v0.1.0

09 Mar 11:26
Compare
Choose a tag to compare

inject command implementation:

  • injects license into file filtered by .licignore.
  • licenses are generated based on configuration
  • configuration can be extended by PR or custom configuration can be provided ( -u argument)

Examples:

  • golic inject -c="2021 ABSA Group Limited" -l=.licignore --dry
  • golic inject -c="2021 ABSA Group Limited" -l=.licignore -u=https://<something>/config.yaml