chrissnell / weather-bar

Pull weather reports from NOAA and Weather Underground and display them in a desktop bar like polybar or lemonbar
BSD 2-Clause "Simplified" License
20 stars 2 forks source link

Cannot Install via AUR #3

Closed RyanScottLewis closed 6 years ago

RyanScottLewis commented 6 years ago

Looks like Go dependencies are not built/installed? I don't know much about Go, but I'm guessing the package script needs to go get these deps.

AUR Packages  (1) weather-bar-1.0-1  

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: weather-bar build files are up-to-date -- skipping
:: Checking weather-bar integrity...
==> Making package: weather-bar 1.0-1 (Sat Apr 28 19:04:11 EDT 2018)
==> Retrieving sources...
  -> Found weather-bar-1.0.tar.gz
==> Validating source files with sha256sums...
    weather-bar-1.0.tar.gz ... Passed
:: Building weather-bar package(s)...
==> Making package: weather-bar 1.0-1 (Sat Apr 28 19:04:11 EDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
config.go:6:2: cannot find package "github.com/go-ini/ini" in any of:
    /usr/lib/go/src/github.com/go-ini/ini (from $GOROOT)
    /home/ryguy/go/src/github.com/go-ini/ini (from $GOPATH)
weather-bar.go:15:2: cannot find package "github.com/jasonwinn/noaa" in any of:
    /usr/lib/go/src/github.com/jasonwinn/noaa (from $GOROOT)
    /home/ryguy/go/src/github.com/jasonwinn/noaa (from $GOPATH)
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build weather-bar package(s)

Small update: I added the following before go build . in the PKGBUILD and it builds and installs just fine:

  go get github.com/go-ini/ini
  go get github.com/jasonwinn/noaa
chrissnell commented 6 years ago

I just updated the AUR package to v1.1, which also includes a fix for the changed WU API. Can you pull a fresh PKGFILE and test for me?

jacob-swenson commented 6 years ago

It looks like the AUR package is still v1.0 to me.

chrissnell commented 6 years ago

Yikes, ok, try now. Just pushed it.

On Thu, May 10, 2018 at 11:16 AM, Jacob Swenson notifications@github.com wrote:

It looks like the AUR package is still v1.1 to me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chrissnell/weather-bar/issues/3#issuecomment-388103767, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBd8lZYuewpiKYkkRU6AUhhLntUho-rks5txGfHgaJpZM4TrmRj .

RyanScottLewis commented 6 years ago

The problem still persists:

AUR Packages  (1) weather-bar-1.1-1  

:: Proceed with installation? [Y/n] y

:: Retrieving package(s)...
:: weather-bar build files are up-to-date -- skipping
:: Checking weather-bar integrity...
==> Making package: weather-bar 1.1-1 (Fri May 18 14:33:21 EDT 2018)
==> Retrieving sources...
  -> Found weather-bar-1.1.tar.gz
==> Validating source files with sha256sums...
    weather-bar-1.1.tar.gz ... Passed
:: Building weather-bar package(s)...
==> Making package: weather-bar 1.1-1 (Fri May 18 14:33:22 EDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
config.go:6:2: cannot find package "github.com/go-ini/ini" in any of:
    /usr/lib/go/src/github.com/go-ini/ini (from $GOROOT)
    /home/ryguy/go/src/github.com/go-ini/ini (from $GOPATH)
weather-bar.go:16:2: cannot find package "github.com/jasonwinn/noaa" in any of:
    /usr/lib/go/src/github.com/jasonwinn/noaa (from $GOROOT)
    /home/ryguy/go/src/github.com/jasonwinn/noaa (from $GOPATH)
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build weather-bar package(s)
chrissnell commented 6 years ago

Thanks for your patience. I just added dep as a dependency and added a dep ensure to the prepare() section. Try again?

RyanScottLewis commented 6 years ago

Same thing, only dep becomes an orphaned package. :sweat_smile:

I've had pretty good success with creating a personal (temporary) pacman repository on my local system, then in a user/environment without your development tools available and use this repo to test installing packages.

chrissnell commented 6 years ago

Thanks for the tip. Made another change and it builds for me in a cleanroom environment.

chrissnell commented 6 years ago

@RyanScottLewis is this working for you now? Can you close this issue if it is?

RyanScottLewis commented 6 years ago

Looks to be resolved! :+1: