<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>43430</bug_id>
          
          <creation_ts>2022-08-02 18:04:07 +0300</creation_ts>
          <short_desc>Не отображается версия в выводе npm config get user-agent</short_desc>
          <delta_ts>2024-03-02 01:30:38 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>npm</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213387</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2022-08-02 18:04:07 +0300</bug_when>
    <thetext>Версия пакета:
npm-8.11.0-alt1

Шаги воспроизведения:
$ npm config get user-agent

Получаемый результат:
npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}

Ошибка не воспроизводится в p10 (npm-6.14.16-alt1):
$ npm config get user-agent
npm/6.14.16 node/v14.19.1 linux x64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216047</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2022-10-17 17:30:39 +0300</bug_when>
    <thetext>npm-8.15.0-alt1 - ошибка воспроизводится.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216304</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2022-10-21 22:59:31 +0300</bug_when>
    <thetext>Проблему исправляет

--- /usr/lib/node_modules/npm/lib/utils/config/definitions.js~  2022-09-30 04:02:36.000000000 +0300
+++ /usr/lib/node_modules/npm/lib/utils/config/definitions.js   2022-10-20 12:34:19.604520442 +0300
@@ -2205,7 +2205,7 @@
 
     // We can&apos;t clobber the original or else subsequent flattening will fail
     // (i.e. when we change the underlying config values)
-    // obj[key] = flatOptions.userAgent
+    obj[key] = flatOptions.userAgent
 
     // user-agent is a unique kind of config item that gets set from a template
     // and ends up translated.  Because of this, the normal &quot;should we set this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216305</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-10-21 23:48:22 +0300</bug_when>
    <thetext>npm-8.19.2-alt2 -&gt; sisyphus:

 Fri Oct 21 2022 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 8.19.2-alt2
 - fix  npm config get user-agent output (ALT bug 43430)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242446</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2024-03-01 17:26:10 +0300</bug_when>
    <thetext>$ npm config get user-agent
npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}

$ epmqf npm
 &gt; npm is placed as /usr/bin/npm
 $ rpm -qf /usr/bin/npm
npm-10.2.4-alt1.noarch
 &gt; /usr/bin/npm is link to ../lib/node_modules/npm/bin/npm-cli.js
 $ rpm -qf /usr/lib/node_modules/npm/bin/npm-cli.js
npm-10.2.4-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242452</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-03-02 01:30:38 +0300</bug_when>
    <thetext>node-20.11.1-alt2 -&gt; sisyphus:

 Fri Mar 01 2024 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 20.11.1-alt2
 - fix npm config get user-agent output again (ALT bug 43430)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>