Skip to content

feat: Add package command #194

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

Merged
merged 1 commit into from
Mar 26, 2024
Merged

feat: Add package command #194

merged 1 commit into from
Mar 26, 2024

Conversation

erezrokah
Copy link
Member

@@ -77,6 +78,17 @@ java {
}
}

jar {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used in the Dockerfile to build the MemDB plugin

@Setter protected Logger logger;
@Setter protected String jsonSchema;

@Setter protected String team;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't set these to @NonNull as that will force them in the ctor and make it a breaking change

@@ -32,7 +31,7 @@ public interface Transform {
public static List<Table> flattenTables(List<Table> tables) {
Map<String, Table> flattenMap = new LinkedHashMap<>();
for (Table table : tables) {
Table newTable = table.toBuilder().relations(Collections.emptyList()).build();
Table newTable = table.toBuilder().build();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emptying the relations makes it so the tables.json is missing them as we call flattenTables.
Did a check and it seems it not necessary to empty the relations nor it should impact anything else

docsDir = Paths.get(pluginDirectory, "docs").toString();
}

initDist();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.info("Building docker image {}", imageTag);
// GITHUB_ACTOR and GITHUB_TOKEN are required for the Dockerfile to pull the CloudQuery Java
// libs from GitHub Packages
String githubActor = System.getenv("GITHUB_ACTOR");
Copy link
Member Author

@erezrokah erezrokah Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a tricky part with Java since we host the SDK on GitHub packages which requires a token to download libs, so we read it from env variables

@erezrokah erezrokah marked this pull request as ready for review March 26, 2024 13:01
@erezrokah erezrokah requested a review from hermanschaaf March 26, 2024 13:03
@erezrokah erezrokah added the automerge Add to automerge PRs once requirements are met label Mar 26, 2024
@kodiakhq kodiakhq bot merged commit 05407bb into main Mar 26, 2024
5 checks passed
@kodiakhq kodiakhq bot deleted the feat/add_package_command branch March 26, 2024 13:26
kodiakhq bot pushed a commit that referenced this pull request Mar 26, 2024
🤖 I have created a release *beep* *boop*
---


## [0.0.23](v0.0.22...v0.0.23) (2024-03-26)


### Features

* Add package command ([#194](#194)) ([05407bb](05407bb))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants