Skip to content

Commit ef61aac

Browse files
committed
docs: Address the topic of git package versions in the FAQ
1 parent 4227f93 commit ef61aac

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

docs/faq.rst

+26-9
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,36 @@ is not limited to:
2929
- Doxygen
3030

3131

32-
Does Cloe support feature X for my controller Y?
33-
""""""""""""""""""""""""""""""""""""""""""""""""
32+
How do I avoid constant version changes like "0.18.0-38-g46e9b0b"?
33+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3434

35-
This will be documented in the future.
35+
Generally, producing an immutable package is a good thing. Each commit that
36+
can be checked out should produce a differently versioned package, since the
37+
contents are also different. During development, this can produce a plethora
38+
of packages and leads to forced recompilation every time a commit is made or
39+
the git hash is changed.
3640

41+
For example, running ``make smoketest-deps smoketest`` in the background and
42+
then committing work while it is running will lead to smoketests failing
43+
because Conan can't find the new package version.
3744

38-
Will you implement my controller?
39-
"""""""""""""""""""""""""""""""""
45+
The solution is to set the version explicitly, which can be done by writing
46+
a string to the ``VERSION`` file in the repository root. This version should
47+
have a suffix that makes clear that it is a volatile package, such as
48+
``-nightly``. For example, in the repository root:
4049

41-
No, we will not. However, we will help you. See :doc:`develop/new-controller`.
50+
echo "0.19.0-nightly" > VERSION
4251

52+
The ``VERSION`` file is listed in the ``.gitignore`` and is not committed.
53+
Just remember when you are using it, that every package you compile from that
54+
repository will have that version, even if you check out different states.
4355

44-
How do I integrate Cloe in my CI pipeline?
45-
""""""""""""""""""""""""""""""""""""""""""
4656

47-
This will be documented in the future.
57+
How do I get rid of the "-dirty" suffix on my versions?
58+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
59+
60+
This indicates you have uncommited changes in the repository. Commit your
61+
changes or set the version explicitly in the ``VERSION`` file in your
62+
repository root.
63+
64+
See the previous question.

0 commit comments

Comments
 (0)