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

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

    <bug>
          <bug_id>48195</bug_id>
          
          <creation_ts>2023-10-26 03:07:05 +0300</creation_ts>
          <short_desc>trivy-db</short_desc>
          <delta_ts>2023-11-05 17:26:14 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure</product>
          <component>cronbuild</component>
          <version>unspecified</version>
          <rep_platform>all</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="Ivan">pepelyaevip</reporter>
          <assigned_to name="viy">viy</assigned_to>
          
          
          <qa_contact name="viy">viy</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235678</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan">pepelyaevip</who>
    <bug_when>2023-10-26 03:07:05 +0300</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235795</commentid>
    <comment_count>1</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-10-27 11:05:15 +0300</bug_when>
    <thetext>В cronbuild (на автоматическое обновление) можно поставить только уже имеющийся в Сизифе пакет. Пакета trivy-db, как я вижу, в Сизифе нет.

Есть пакет trivy, но он принадлежит shaba@.

Уточните ваш запрос.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235846</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan">pepelyaevip</who>
    <bug_when>2023-10-27 19:49:54 +0300</bug_when>
    <thetext>(Ответ для viy на комментарий #1)
&gt; В cronbuild (на автоматическое обновление) можно поставить только уже
&gt; имеющийся в Сизифе пакет. Пакета trivy-db, как я вижу, в Сизифе нет.

Он в сизифе: https://packages.altlinux.org/ru/sisyphus/srpms/trivy-db/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235853</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-10-27 22:25:22 +0300</bug_when>
    <thetext>(Ответ для Ivan на комментарий #2)
&gt; Он в сизифе: https://packages.altlinux.org/ru/sisyphus/srpms/trivy-db/

доехал :)

Добавил в cronbuild,
сейчас смотрю, как он отработает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235855</commentid>
    <comment_count>4</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-10-27 23:11:14 +0300</bug_when>
    <thetext>отработал с ошибкой.
cronbuild вызывает скрипт
gear-cronbuild-apply-hooks-in-hsh-chroot
вы можете у себя запустить этот скрипт и попробовать отладить проблему локально.

Похоже, вам надо в ./gear/cronbuild-options
в cronbuild_requires=
кроме golang еще что-то указать.

в логах сообщение:
Cloning into &apos;trivy-db&apos;...                                                      
go: cannot find GOROOT directory: &apos;go&apos; binary is trimmed and GOROOT is not set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235933</commentid>
    <comment_count>5</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-10-29 22:54:51 +0300</bug_when>
    <thetext>как там, удалось разобраться, в чем проблема?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235982</commentid>
    <comment_count>6</comment_count>
    <who name="Ivan">pepelyaevip</who>
    <bug_when>2023-10-30 16:37:50 +0300</bug_when>
    <thetext>(In reply to viy from comment #5)
&gt; как там, удалось разобраться, в чем проблема?

Нужно было явно GOROOT экспортировать, жду, пока соберется</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236455</commentid>
    <comment_count>7</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-11-05 17:26:14 +0300</bug_when>
    <thetext>%changelog
* Mon Oct 30 2023 Ivan Pepelyaev &lt;fl0pp5@altlinux.org&gt; 20231030-alt1
- repocop cronbuild 20231030. At your service.

* Wed Oct 25 2023 Ivan Pepelyaev &lt;fl0pp5@altlinux.org&gt; 20231025-alt1
- Initial build

Вроде приняло, закрываю</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>