Package Details: nomad 1.1.1-1

Git Clone URL: https://aur.archlinux.org/nomad.git (read-only, click to copy)
Package Base: nomad
Description: A Distributed, Highly Available, Datacenter-Aware Scheduler
Upstream URL: https://nomadproject.io/
Licenses: MPL2
Submitter: mtorromeo
Maintainer: rpodgorny (leothrix)
Last Packager: rpodgorny
Votes: 24
Popularity: 0.117836
First Submitted: 2016-02-25 21:45
Last Updated: 2021-06-10 11:16

Dependencies (6)

Required by (1)

Sources (5)

Latest Comments

1 2 3 Next › Last »

rpodgorny commented on 2021-06-24 07:50

...i'm unable to update the version - it seems like someone is toying with bringing nomad to community repository... :-(

+ git push
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 522 bytes | 522.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: error: package already provided by [community-testing]: nomad
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/nomad.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/nomad.git'

psYchotic commented on 2021-06-10 14:15

If I may, I'd like to suggest the following diff:

diff --git a/PKGBUILD b/PKGBUILD
index 4f4e530..9ee4b78 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,6 +32,7 @@ prepare() {

   export GOPATH="$srcdir"
   export PATH="$GOPATH/bin:$PATH"
+  export GOFLAGS="-mod=readonly -modcacherw"

   make deps lint-deps
   mkdir -p bin
@@ -41,6 +42,7 @@ build() {
   cd src/github.com/hashicorp/nomad
   export GOPATH="$srcdir"
   export PATH="$GOPATH/bin:$PATH"
+  export GOFLAGS="-mod=readonly -modcacherw"

   CGO_ENABLED=1 \
     go build -trimpath \

Without at least the "-modcacherw" flag, installed packages aren't writable, which means that you can't delete your ${srcdir} without running as root, or running something like "chmod -R u+w src/", which is a pain when using AUR helpers.

Source: https://wiki.archlinux.org/title/Go_package_guidelines#Flags_and_build_options

imlonghao commented on 2021-05-19 16:52

Hi maintainers, can you add network-online.target to those service files (the line starting with After=)? I am having an issue with starting nomad on boot.

Error starting agent: client setup failed: fingerprinting failed: Error while detecting network interface  during fingerprinting: No default interface found

teutat3s commented on 2020-08-10 18:49

diff for building the latest nomad version as of now, 0.12.1

diff --git a/PKGBUILD b/PKGBUILD
index 58fd6d9..c196f05 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Radek Podgorny <radek@podgorny.cz>

 pkgname=nomad
-pkgver=0.11.3
+pkgver=0.12.1
 pkgrel=1
 pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
 arch=('x86_64' 'aarch64' 'armv7h' 'armv7l')
@@ -16,7 +16,7 @@ optdepends=('docker: enables docker driver'
 backup=(etc/nomad/{server,client}.conf)
 source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz
         nomad-{server,client}.{service,conf})
-sha256sums=('4ac797fd87a9e24a99e45a5dae91dd1064ab90a9da180ee2d0914a6ded4d3272'
+sha256sums=('02f7b2319d5ab7bab644f51de1c248e534498aefe50bf26291a888a99d993359'
             '52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206'
             'da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714'
             '4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb'
@@ -32,8 +32,6 @@ prepare() {
    export GOPATH="$srcdir"
    export PATH="$GOPATH/bin:$PATH"

-   go get golang.org/x/sys/cpu
-
    make deps lint-deps
    mkdir -p bin
 }
@@ -44,8 +42,9 @@ build() {
    export PATH="$GOPATH/bin:$PATH"

    CGO_ENABLED=1 \
-       go build -ldflags '-X main.GitCommit=""' \
-                -tags "ui lxc" \
+       go build -trimpath \
+                -ldflags '-X main.GitCommit=""' \
+                -tags "ui release" \
                 -o bin/nomad
 }

Svenstaro commented on 2020-04-28 19:38

You should fix the # Maintainer tags in the PKGBUILD to reflect the current actual maintainers.

rpodgorny commented on 2019-12-27 11:37

hi leothrix! that makes sense. i've added you as co-maintainer so feel free to do edits.

leothrix commented on 2019-12-27 06:07

Hi rpodgorny! Thank you for taking over maintainership. I'm a pretty heavy user of nomad, and actually run it with great success on some additional architectures likes aarch64 and armv7h (these architectures are actually officially supported by Hashicorp, as well). I've manually edited the PKGBUILDs for years, but I propose amending the PKGBUILD to elide the manual GOARCH step and just letting go handle the compilation architecture, which would just leave amending the arch array. I've tested this locally and it continues to compile on x86_64 as well as the arm variants.

diff --git a/PKGBUILD b/PKGBUILD
index [`cecc9fe`](https://aur.archlinux.org/cgit/aur.git/commit/?h=nomad&id=cecc9fe)..e0b45b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=nomad
pkgver=0.10.2
pkgrel=1
pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
-arch=('x86_64')
+arch=('x86_64' 'aarch64' 'armv7h' 'armv7l')
url="<https://nomadproject.io/>"
license=('MPL2')
#depends=('ethtool' 'lxc')
@@ -32,12 +32,6 @@ prepare() {
        export GOPATH="$srcdir"
        export PATH="$GOPATH/bin:$PATH"

-       if [ $CARCH == "x86_64" ]; then
-               export GOARCH=amd64
-       else
-               export GOARCH=386
-       fi
-
        go get golang.org/x/sys/cpu

        make deps lint-deps
@@ -49,12 +43,6 @@ build() {
        export GOPATH="$srcdir"
        export PATH="$GOPATH/bin:$PATH"

-       if [ $CARCH == "x86_64" ]; then
-               export GOARCH=amd64
-       else
-               export GOARCH=386
-       fi
-
        CGO_ENABLED=1 \
                go build -ldflags '-X main.GitCommit=""' \

rpodgorny commented on 2019-12-13 00:19

edited to match nomad-bin more closely. comments welcome!

WRMSR commented on 2019-09-02 09:29

Hi,

depending on lxc (and setting it as tag in go build) is basically useless, because the lxc driver is an out-of-tree module that must be built or downloaded separately: https://github.com/hashicorp/nomad-driver-lxc https://www.nomadproject.io/docs/drivers/external/lxc.html

Also, depending on ethtool makes no sense, as it's not mentioned anywhere in the docs.

I've built nomad successfully just with '-tags "ui"', no depends and with the same optdepends from the nomad-bin package in the MAKEPKG (there is no java-runtime-headless in the repositories, just java-runtime).

leothrix commented on 2019-07-02 04:51

The recent hook-related build failures are likely due to the fact that this package fetches a release tarball and not the complete repository and related files. I'm currently using the following patch, which permits this to build.

diff --git a/PKGBUILD b/PKGBUILD
index [`e13984b`](https://aur.archlinux.org/cgit/aur.git/commit/?h=nomad&id=e13984b)..f61d309 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -41,7 +41,7 @@ prepare() {

        go get golang.org/x/sys/cpu

-       make bootstrap
+       make deps lint-deps
        mkdir -p bin
 }