wonderix / n8s

Nim kubernetes client
Apache License 2.0
11 stars 0 forks source link

potential missing dependency causing "Error: undeclared identifier: 'TagId'" #6

Open ashw7n opened 3 years ago

ashw7n commented 3 years ago

First of all thanks for the project. I am trying to learn Nim and what better way to try out stuff that using it with kubernetes and is how I discovered this project.

I am however stuck with the following error, since my knowledge of Nim is also pretty new I am stuck. Can you point out at what might be going wrong here?

nim c -r tests/test.nim
Hint: used config file '/usr/local/Cellar/nim/1.6.0/nim/config/nim.cfg' [Conf]
Hint: used config file '/usr/local/Cellar/nim/1.6.0/nim/config/config.nims' [Conf]
Hint: used config file '/Users/a/Projects/nim-me/n8s/nim.cfg' [Conf]
...................................................................................................................................................
/Users/a/Projects/nim-me/n8s/src/n8s/base_types.nim(21, 1) Warning: use setTag; setTagUri is deprecated [Deprecated]
/Users/a/Projects/nim-me/n8s/src/n8s/base_types.nim(31, 85) Error: undeclared identifier: 'TagId'
candidates (edit distance, scope distance); see '--spellSuggest':
 (2, 3): 'Tag' [type declared in /Users/a/.nimble/pkgs/yaml-0.15.0/yaml/data.nim(13, 3)]
make: *** [tests/test.log] Error 1```

The nim version I am using is 1.6.0
```$ nim -version
Nim Compiler Version 1.6.0 [MacOSX: amd64]
Compiled at 2021-10-19
Copyright (c) 2006-2021 by Andreas Rumpf

active boot switches: -d:release -d:nimUseLinenoise
wonderix commented 3 years ago

This is caused by a newer version of yaml. TagId was renamed to Tag. I started this project to learn nim in more detail.
In my daily work, I unfortunately have nothing to do with Kubernetes anymore. So this project is also more ore less unmaintained. I fixed the compilation error. But the tests are no longer running.