Skip to content

Commit

Permalink
telegraf: Fix Source Uri and allow network access
Browse files Browse the repository at this point in the history
This commit fixes the SRC_URI for the telegraf recipe. It sets the scheme to git:// to ensure a Git clone is done and uses protocol=https, the current standard protocol. This change ensures the telegraf recipe can fetch the source code using the supported HTTPS protocol and access the internet during the compilation.

Signed-off-by: Flarno <flarno11@gmail.com>
  • Loading branch information
flarno11 authored Nov 21, 2023
1 parent eff2f0e commit 5167a03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes-devtools/telegraf/telegraf_1.14.5.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/influxdata/telegraf"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/src/${GO_IMPORT}/LICENSE;md5=4c87a94f9ef84eb3e8c5f0424fef3b9e"

SRC_URI = "https://github.com/influxdata/telegraf;branch=release-1.14"
SRC_URI = "git://github.com/influxdata/telegraf;protocol=https;branch=release-1.14"
SRCREV = "e77ce3d11d2b3d2f66e85921142d4927752054b2"

inherit go-mod systemd
Expand All @@ -16,6 +16,8 @@ GO_INSTALL = "github.com/influxdata/telegraf/cmd/telegraf"

SYSTEMD_SERVICE:${PN} = "${PN}.service"

do_compile[network] = "1"

do_install:append() {
# FIXME: This has mixed architecture files and causes errors during
# packaging
Expand Down

0 comments on commit 5167a03

Please sign in to comment.