Skip to content

Commit

Permalink
Fix the build on a new Fedora machine (#4624)
Browse files Browse the repository at this point in the history
* Fix the build on a new Fedora machine

* remove generate-docker

---------

Co-authored-by: Andrea Peruffo <[email protected]>
  • Loading branch information
andreaTP and Andrea Peruffo authored May 3, 2024
1 parent 890a35e commit e7cf5d8
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 111 deletions.
37 changes: 0 additions & 37 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,41 +145,4 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>go-sdk-generate-docker</id>
<activation>
<property>
<name>!skipNonJavaGen</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<configuration>
<executable>/usr/bin/env</executable>
<workingDirectory>${project.basedir}/../go-sdk</workingDirectory>
<arguments>
<argument>bash</argument>
<argument>generate-docker.sh</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -294,27 +294,27 @@ The following {registry} configuration options are available for each component
|
|`1.2.3.Final`
|Ignored liveness errors
|`apicurio.metrics.PersistenceExceptionLivenessCheck.counterResetWindowDurationSec`
|`apicurio.metrics.PersistenceExceptionLivenessCheck.counterResetWindowDuration.seconds`
|`integer`
|`60`
|`1.0.2.Final`
|Counter reset window duration of persistence liveness check
|`apicurio.metrics.PersistenceExceptionLivenessCheck.disableLogging`
|`boolean`
|`false`
|`2.0.0.Final`
|Disable logging of persistence liveness check
|`apicurio.metrics.PersistenceExceptionLivenessCheck.errorThreshold`
|`integer`
|`1`
|`1.0.2.Final`
|Error threshold of persistence liveness check
|`apicurio.metrics.PersistenceExceptionLivenessCheck.statusResetWindowDurationSec`
|`apicurio.metrics.PersistenceExceptionLivenessCheck.logging.disabled`
|`boolean`
|`false`
|`2.0.0.Final`
|Disable logging of persistence liveness check
|`apicurio.metrics.PersistenceExceptionLivenessCheck.statusResetWindowDuration.seconds`
|`integer`
|`300`
|`1.0.2.Final`
|Status reset window duration of persistence liveness check
|`apicurio.metrics.PersistenceTimeoutReadinessCheck.counterResetWindowDurationSec`
|`apicurio.metrics.PersistenceTimeoutReadinessCheck.counterResetWindowDuration.seconds`
|`integer`
|`60`
|`1.0.2.Final`
Expand All @@ -324,7 +324,7 @@ The following {registry} configuration options are available for each component
|`5`
|`1.0.2.Final`
|Error threshold of persistence readiness check
|`apicurio.metrics.PersistenceTimeoutReadinessCheck.statusResetWindowDurationSec`
|`apicurio.metrics.PersistenceTimeoutReadinessCheck.statusResetWindowDuration.seconds`
|`integer`
|`300`
|`1.0.2.Final`
Expand All @@ -334,27 +334,27 @@ The following {registry} configuration options are available for each component
|`15`
|`1.0.2.Final`
|Timeout of persistence readiness check
|`apicurio.metrics.ResponseErrorLivenessCheck.counterResetWindowDurationSec`
|`apicurio.metrics.ResponseErrorLivenessCheck.counterResetWindowDuration.seconds`
|`integer`
|`60`
|`1.0.2.Final`
|Counter reset window duration of response liveness check
|`apicurio.metrics.ResponseErrorLivenessCheck.disableLogging`
|`boolean`
|`false`
|`2.0.0.Final`
|Disable logging of response liveness check
|`apicurio.metrics.ResponseErrorLivenessCheck.errorThreshold`
|`integer`
|`1`
|`1.0.2.Final`
|Error threshold of response liveness check
|`apicurio.metrics.ResponseErrorLivenessCheck.statusResetWindowDurationSec`
|`apicurio.metrics.ResponseErrorLivenessCheck.logging.disabled`
|`boolean`
|`false`
|`2.0.0.Final`
|Disable logging of response liveness check
|`apicurio.metrics.ResponseErrorLivenessCheck.statusResetWindowDuration.seconds`
|`integer`
|`300`
|`1.0.2.Final`
|Status reset window duration of response liveness check
|`apicurio.metrics.ResponseTimeoutReadinessCheck.counterResetWindowDurationSec`
|`apicurio.metrics.ResponseTimeoutReadinessCheck.counterResetWindowDuration.seconds`
|`instance<integer>`
|`60`
|`1.0.2.Final`
Expand All @@ -364,7 +364,7 @@ The following {registry} configuration options are available for each component
|`1`
|`1.0.2.Final`
|Error threshold of response readiness check
|`apicurio.metrics.ResponseTimeoutReadinessCheck.statusResetWindowDurationSec`
|`apicurio.metrics.ResponseTimeoutReadinessCheck.statusResetWindowDuration.seconds`
|`instance<integer>`
|`300`
|`1.0.2.Final`
Expand Down Expand Up @@ -447,7 +447,7 @@ The following {registry} configuration options are available for each component
|`-1`
|`2.1.0.Final`
|Max artifact description length
|`apicurio.limits.config.max-label-size`
|`apicurio.limits.config.max-label-size.bytes`
|`long`
|`-1`
|`2.1.0.Final`
Expand All @@ -457,12 +457,12 @@ The following {registry} configuration options are available for each component
|`-1`
|`2.1.0.Final`
|Max artifact name length
|`apicurio.limits.config.max-property-key-size`
|`apicurio.limits.config.max-property-key-size.bytes`
|`long`
|`-1`
|`2.1.0.Final`
|Max artifact property key size
|`apicurio.limits.config.max-property-value-size`
|`apicurio.limits.config.max-property-value-size.bytes`
|`long`
|`-1`
|`2.1.0.Final`
Expand All @@ -472,7 +472,7 @@ The following {registry} configuration options are available for each component
|`-1`
|`2.2.3.Final`
|Max artifact requests per second
|`apicurio.limits.config.max-schema-size-bytes`
|`apicurio.limits.config.max-schema-size.bytes`
|`long`
|`-1`
|`2.2.3.Final`
Expand Down Expand Up @@ -503,16 +503,16 @@ The following {registry} configuration options are available for each component
|Default
|Available from
|Description
|`apicurio.redirects.enabled`
|`boolean`
|
|`2.1.2.Final`
|Enable redirects
|`apicurio.redirects`
|`map<string, string>`
|
|`2.1.2.Final`
|Registry redirects
|`apicurio.redirects.enabled`
|`boolean`
|
|`2.1.2.Final`
|Enable redirects
|`apicurio.url.override.host`
|`optional<string>`
|
Expand Down Expand Up @@ -760,11 +760,6 @@ The following {registry} configuration options are available for each component
|`true`
|`2.0.0.Final`
|SQL init
|`apicurio.storage.sql.kind`
|`string`
|`h2`
|`3.0.0.Final`
|Application datasource database type
|`apicurio.storage.kind`
|`string`
|
Expand All @@ -775,6 +770,11 @@ The following {registry} configuration options are available for each component
|`false`
|`2.5.0.Final`
|Enable Registry storage read-only mode
|`apicurio.storage.sql.kind`
|`string`
|`h2`
|`3.0.0.Final`
|Application datasource database type
|`artifacts.skip.disabled.latest`
|`boolean`
|`true`
Expand Down
23 changes: 14 additions & 9 deletions go-sdk/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_PATH := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
PROJECT_BIN := $(PROJECT_PATH)/bin
GO := $(PROJECT_BIN)/go1.20

bin/go:
mkdir -p $(PROJECT_BIN)
GOBIN=$(PROJECT_BIN) go install golang.org/dl/go1.20@latest
$(PROJECT_BIN)/go1.20 download

.PHONY: clean
clean:
rm -rf kiota_tmp v2.json v3.json
rm -rf $(PROJECT_BIN) kiota_tmp v2.json v3.json

.PHONY: generate
generate:
./generate.sh

.PHONY: generate-docker
generate-docker:
./generate-docker.sh

.PHONY: test
test:
go test ./... -count=1
test: bin/go
GOBIN=$(PROJECT_BIN) ${GO} test ./... -count=1

.PHONY: test
format:
go fmt ./...
format: bin/go
GOBIN=$(PROJECT_BIN) ${GO} fmt ./...
30 changes: 0 additions & 30 deletions go-sdk/generate-docker.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (m *ItemArtifactsItemVersionsWithVersionExpressionItemRequestBuilder) Conte
return NewItemArtifactsItemVersionsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}

// Delete deletes a single version of the artifact. Parameters `groupId`, `artifactId` and the unique `version`are needed. If this is the only version of the artifact, this operation is the same as deleting the entire artifact.This feature is disabled by default and it's discouraged for normal usage. To enable it, set the `registry.rest.artifact.deletion.enabled` property to true. This operation can fail for the following reasons:* No artifact with this `artifactId` exists (HTTP error `404`)* No version with this `version` exists (HTTP error `404`) * Feature is disabled (HTTP error `405`) * A server error occurred (HTTP error `500`)
// Delete deletes a single version of the artifact. Parameters `groupId`, `artifactId` and the unique `version`are needed. If this is the only version of the artifact, this operation is the same as deleting the entire artifact.This feature is disabled by default and it's discouraged for normal usage. To enable it, set the `apicurio.rest.artifact.deletion.enabled` property to true. This operation can fail for the following reasons:* No artifact with this `artifactId` exists (HTTP error `404`)* No version with this `version` exists (HTTP error `404`) * Feature is disabled (HTTP error `405`) * A server error occurred (HTTP error `500`)
func (m *ItemArtifactsItemVersionsWithVersionExpressionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemArtifactsItemVersionsWithVersionExpressionItemRequestBuilderDeleteRequestConfiguration) error {
requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go-sdk/pkg/registryclient-v3/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "08E72D16D6B06384C173A2EC6C636BEF1B388AF1E8632780FCF1A9C0A1FA5F6FB947869ACDB700425DE34A3245F5802C60C1B164DEEC82CFE098287D61E804DD",
"descriptionHash": "313EFA5E0F1C0F3C53EB7A83656CE4AD17016776069114557F61DE096B74455F66FC36AF54C5DF5DAA1114D2A9E07657734A6AED94461CCBFC648A921F0B254D",
"descriptionLocation": "../../v3.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.10.1",
Expand Down
54 changes: 54 additions & 0 deletions go-sdk/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.apicurio</groupId>
<artifactId>apicurio-registry</artifactId>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>apicurio-registry-go-sdk</artifactId>
<packaging>jar</packaging>
<name>apicurio-registry-go-sdk</name>

<profiles>
<profile>
<id>go-sdk-regenerate</id>
<activation>
<property>
<name>!skipNonJavaGen</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<configuration>
<executable>make</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>generate</argument>
<argument>format</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<module>distro</module>
<module>docs</module>
<module>java-sdk</module>
<module>go-sdk</module>

<!-- modules for implementing ArtifactTypeUtilProvider -->
<module>schema-util/common</module>
Expand Down Expand Up @@ -125,7 +126,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<tar.long.file.mode>gnu</tar.long.file.mode>
<tar.long.file.mode>posix</tar.long.file.mode>

<!-- UI Build Tools -->
<node.version>16.17.0</node.version>
Expand Down

0 comments on commit e7cf5d8

Please sign in to comment.