carvel-dev / carvel-dev/ytt

`--file` treats query params in HTTP URLs as path assignments

Open
#928 3 comments 0 reactions 0 assignees View on GitHub
bug carvel accepted good first issue priority/unprioritized-backlog
Dominant language
Go
Stars
1.9k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

**What steps did you take:**

ytt the bootstrapper resources I am given by Tanzu Platform in form of a HTTP URL which contains query params

**What happened:**

```shell
ytt -f "https://example.com/?id=123&source=hello"
```

```
ytt: Error: Expected file 'https://example.com/?id=123&source=hello' to only have single '=' sign to for relative path assignment
```

**What did you expect:**

ytt fetches the file and templates it.

**Anything else you would like to add:**

I can workaround the issue with, say

```shell
http "https://example.com/?id=123&source=hello" | ytt -f-
```

**Environment:**

- ytt version (use `ytt --version`): `0.50.0`
- OS (e.g. from `/etc/os-release`): `macOS`

---
Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported `ytt -f "https://example.com/?id=123&source=hello"` command and trace the CLI's `--file` argument parsing and HTTP URL handling. Done means a URL containing query parameters is fetched and templated rather than treated as a relative path assignment; compare with the documented `ytt -f-` workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.