Answers: <h1>App Version vs Chart Version</h1>
  <p>There are two pieces of software in play with different version numbers,</p>
  <ul>
  <li>[nginx upstream](<a href="https://github.com/nginx/nginx%5D" rel="nofollow noreferrer">https://github.com/nginx/nginx]</a> which in this example is currently at 1.23.4</li>
  <li><a href="https://github.com/kubernetes/ingress-nginx.git" rel="nofollow noreferrer">ingress-nginx</a> which is a chart that uses nginx and that chart is currently at 4.6.0</li>
  </ul>
  <p>The helm dependency <code>version</code> field is for the version of the chart. Not the upstream software being packaged.</p>
  
Answers: CC BY-SA 4.0
Answers: 2023-04-13T06:03:41.857Z
Answers: 2023-04-13T06:03:41.857Z
Answers: Evan Carroll
Body: <p>When I run <code>helm dependency build</code> I get</p>
  <blockquote>
  <p>Error: can't get a valid version for repositories ingress-nginx. Try changing the version constraint in Chart.yaml</p>
  </blockquote>
  <p>I've tried all kinds of things the version,</p>
  <pre><code>1.x.x
  ~1
  ^1
  </code></pre>
  <p>Everything generates that error. This the relevant part of my Chart.yaml</p>
  <pre><code>- name: ingress-nginx
      repository: https://kubernetes.github.io/ingress-nginx
      version: 1.x.x
  </code></pre>
  
Tags: <helm>
Title: Error: can't get a valid version for repositories <package>. Try changing the version constraint in Chart.yaml
UserDisplayName: Evan Carroll
ThreadText: # Error: can't get a valid version for repositories <package>. Try changing the version constraint in Chart.yaml
  
  (Asked by: username_0 on 2023-04-13)
  
  When I run `helm dependency build` I get
  
  > Error: can't get a valid version for repositories ingress-nginx. Try changing the version constraint in Chart.yaml
  
  I've tried all kinds of things the version,
  
  ```
  1.x.x
  ~1
  ^1
  
  ```
  
  Everything generates that error. This the relevant part of my Chart.yaml
  
  ```
  - name: ingress-nginx
      repository: https://kubernetes.github.io/ingress-nginx
      version: 1.x.x
  
  ```
  
  **Tags:** helm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-04-13. Score: 0 | Accepted answer
  
  # App Version vs Chart Version
  
  There are two pieces of software in play with different version numbers,
  
  * [nginx upstream]([https://github.com/nginx/nginx]](https://github.com/nginx/nginx%5D) which in this example is currently at 1.23.4
  * [ingress-nginx](https://github.com/kubernetes/ingress-nginx.git) which is a chart that uses nginx and that chart is currently at 4.6.0
  
  The helm dependency `version` field is for the version of the chart. Not the upstream software being packaged.
  
  
  ---
  
  