Commit Graph

12 Commits

Author SHA1 Message Date
Bernd Ahlers
b3fad6a86f Add "assembly_platforms" field to manifest 2022-11-15 14:35:31 +01:00
Bernd Ahlers
d580127551 Add changelog management commands (#31)
* Update cobra and viper to their latest versions
* Start a changelog command
* Start changelog release command
* Add Document360 specific HTML formatter
* Add "new" command to create a new changelog entry
* Hide unfinished changelog release command for now
* Use Go version 1.19
* Update golang.org/x/sys to fix build error
* Clean workspace after each build
* Disable CGO for tests
* Remove wrong git checkout
* Update dependencies
2022-08-31 13:37:09 +02:00
Bernd Ahlers
72b8cd19d8 Support PR HTTP URLs for the --pull-requests option of checkout
This makes it possible to use a full HTTP URL to a pull request.
2020-12-17 13:18:35 +01:00
Bernd Ahlers
0ff8279521 Fix repository detection for --pull-requests in checkout command 2020-08-03 15:47:50 +02:00
Bernd Ahlers
73263208c3 Add --pull-requests flag to checkout command
This uses GitHub's way of checking out a pull-request locally.

See: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
2020-06-05 19:02:37 +02:00
Bernd Ahlers
0f5225deb7 Ensure that apply data is present in submodules as well
Otherwise calling "project.Module#ApplyNewVersion()" on a submodule
would return an empty version.
2018-03-13 18:17:41 +01:00
Bernd Ahlers
d91f5fdb52 Add PomFiles function to project modules 2018-03-13 14:20:56 +01:00
Bernd Ahlers
1350f49e95 Introduce "assemblies" and deprecate "assembly" in manifests (#11)
The "assembly" boolean field was used to decide if a module should be
included in the open-source assembly descriptor. The enterprise assembly
descriptor included a hard coded list of plugins and wasn't generated like
the open-source descriptor.

We need to be able to generate the enterprise assembly descriptor as well
because we now have different artifacts in 2.4 and 3.0, for example.

To do this, we introduced the "assemblies" field which contains a list of
assembly descriptor IDs. The open-souce and enterprise assembly descriptor
templates now get a list of modules for a given assembly ID.

    // graylog-assembly.xml
    {{ range $assembly := index .Assemblies "graylog" }}
      // ...
    {{ end }}

    // graylog-enterprise-assembly.xml
    {{ range $assembly := index .Assemblies "graylog-enterprise" }}
      // ...
    {{ end }}

This makes it possible to configure one or more assemblies for each
module in the manifest. It also allows us to include each module in more
than one assembly.

The CLI tool will emit a warning for manifests which still use the old
"assembly" field.
2018-03-08 12:25:32 +01:00
Bernd Ahlers
f11de3e542 Fix an issue where we would generate a long relative path
IntelliJ cannot handle very long relative paths in the "<module>" tag
for some reason so we try to generate a short relative path. This was an
issue when the current working dir is inside a symlink.
2018-02-16 21:49:25 +01:00
Bernd Ahlers
efb3ba437a Add optional assembly descriptor to manifests 2017-07-12 10:16:47 +02:00
Bernd Ahlers
9e6369006a Add a module-override option to the checkout command
This can be used to override the revision for a module in the given
manifest.
2017-04-29 17:34:49 +02:00
Bernd Ahlers
80ebf85e88 Initial commit 2017-04-07 17:11:08 +02:00