Package Details: otelcol-contrib 0.112.0-1

Git Clone URL: https://aur.archlinux.org/otelcol-contrib.git (read-only, click to copy)
Package Base: otelcol-contrib
Description: OpenTelemetry Collector Contrib distribution
Upstream URL: https://github.com/open-telemetry/opentelemetry-collector-contrib
Licenses: Apache
Groups: open-telemetry
Submitter: rogercoll
Maintainer: rogercoll
Last Packager: rogercoll
Votes: 0
Popularity: 0.000000
First Submitted: 2023-08-30 20:24 (UTC)
Last Updated: 2024-10-28 10:56 (UTC)

Latest Comments

woodsb02 commented on 2024-12-15 02:26 (UTC) (edited on 2024-12-15 02:29 (UTC) by woodsb02)

@pepperblue - for clarity - is this the change you made to the PKGBUILD file to fix this error?

diff --git a/PKGBUILD b/PKGBUILD
index be3c2c6..42dce7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,6 +32,7 @@ sha512sums=('ae88d4daaf7324af52bf63104a6d0a53f6ab66a92e4d15e4b2a096839eaf9b753af

 build() {
        cd "opentelemetry-collector-contrib-$pkgver"
+       git init
        make otelcontribcol
 }

pepperblue commented on 2024-11-07 16:10 (UTC)

Hi, as far as I can tell, the reason for is, that "Makefile.Common" generates "SRC_ROOT" by executing git rev-parse --show-toplevel, but the extracted archive contains no ".git"-directory (but there possibly is one under "/tmp/otelcol-contrib"). Solution - at least for me - was to edit PKGBUILD so that the source-root-dir contains the needed git-config.

Alucard commented on 2024-10-31 02:12 (UTC)

Hi, 0.112.0 fails with

==> Starting build()...

/bin/bash: line 1: /tmp/otelcol-contrib/internal/tools/tools.go: No such file or directory

make: *** No rule to make target '/tmp/otelcol-contrib/.tools/builder', needed by 'genotelcontribcol'. Stop.

==> ERROR: A failure occurred in build().

any ideas on why?

ectospasm commented on 2023-10-22 21:46 (UTC)

You automatically enable and start the otelcol-contrib service in post_install() and post_upgrade(). You shouldn't do that. If someone is installing it for the first time, they should be able to configure it first. This is not Ubuntu, Arch users don't expect installed services to be enabled and started automatically.

Once they've configured it and they're ready to start, then they can do this: # systemctl enable --now otelcol-contrib.service

Installing the package shouldn't do that automatically.