<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>no git submodule support in nrf toolchain</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94924/no-git-submodule-support-in-nrf-toolchain</link><description>Late yesterday I discovered that the nrf command line tools includes its own version of git. A version that does not include git-submodule ! Git submodules are integral to all of the other development work that I do. Adopting west in my other work is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2022 18:13:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94924/no-git-submodule-support-in-nrf-toolchain" /><item><title>RE: no git submodule support in nrf toolchain</title><link>https://devzone.nordicsemi.com/thread/400938?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 18:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffc491e9-fa9c-4b15-8e08-6b5fc444d494</guid><dc:creator>jahess</dc:creator><description>&lt;p&gt;That&amp;#39;s two conflicts with the normal shell environment that I use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;No git submodules&lt;/li&gt;
&lt;li&gt;On MacOSX, vscode started from a shell environment that includes anaconda does not build multiimage examples&amp;nbsp;(like anything for the nrf5340).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A solution for me that is easy to remember and might be useful to others is having two conda environments:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;My default &amp;quot;base&amp;quot; environment that includes anaconda as well as a full git.&lt;/li&gt;
&lt;li&gt;An &amp;quot;nrf&amp;quot; environment that includes the nrf command line tool chain but excludes anaconda.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Setting up the second environment is easy.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;conda create -n nrf # an empty non-cloned environment
&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;To set or update the path for the nrf environment, but executed from the default &amp;quot;base&amp;quot; environment:&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;conda deactivate # take anaconda out of default environment
conda env config vars unset PATH -n nrf
conda env config vars set PATH=/opt/nordic/ncs/toolchains/v2.2.0/bin:&amp;quot;${PATH}&amp;quot; -n nrf
conda env config vars list -n nrf # to verify
&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;When wanting to do nrf work, including starting related vscode sessions:&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;conda activate nrf&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;is issued in the corresponding shell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>