Integrating Golioth into custom NCS app

Hi,

I’m trying to integrate Golioth into a custom NCS app. I followed the instructions here to use the latest Golioth tag in our custom NCS app: How do I lock my project to a specific Golioth version?, specifically “v0.16.0”.

This is what west.yml looks like in our repo:

manifest:
  projects:
    - name: golioth
      path: modules/lib/golioth
      revision: v0.16.0
      url: https://github.com/golioth/golioth-zephyr-sdk
      west-commands: scripts/west-commands.yml
      import:
        file: west-ncs.yml
        path-prefix: deps
  self:
    path: app

This is the error I get when I attempt to do a west init and update:

[repo-clean]$ west update
=== updating golioth (deps/modules/lib/golioth):
--- golioth: initializing
Initialized empty Git repository in /media/mab/mab_home/repo-clean/deps/modules/lib/golioth/.git/
--- golioth: fetching, need revision v0.16.0
fatal: couldn't find remote ref v0.16.0
FATAL ERROR: command exited with status 128: fetch -f --tags -- https://github.com/golioth/golioth-zephyr-sdk v0.16.0

If I try to specify main as the revision for Golioth, west doesn’t pull the latest commits (it only goes up to tag v0.8.0).

Can you tell me what I’m doing wrong?

It looks like the post I’m referencing is out of date, which makes since it’s from 2 years ago.

The manifest file should reference golioth-firmware-sdk not golioth-zephyr-sdk.

After making that change, I can successfully pull in the latest tag from Golioth.

2 Likes

Hi @mab! That is correct! We now have a single Firmware SDK that has ports for multiple different platforms. You can find the latest information on how to integrate with NCS here. You can find more information about this change in this blog post. Please let us know if you have any further questions!