Azure / Azure/azure-functions-core-tools
Remove empty `Depends:` field from azure-functions-core-tools deb package.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 13
Description
Hi,
This is a bit of a shot in the dark, I'd appreciate it if you point me
to the right folks if y'all aren't :)
I'm writing about a small issue in this debian repo
that's causing us problems. The package azure-functions-core-tools has
an empty Depends field:
```
$ wget https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/pool/main/a/azure-functions-core-tools/azure-functions-core-tools_2.7.2508-1.deb
...
$ dpkg-deb -I azure-functions-core-tools_2.7.2508-1.deb | grep Depends
Depends:
```
While the entry for that package in the Packages file
is missing a Depends field (instead of having it just be empty).
```
Package: azure-functions-core-tools
Priority: optional
Section: devel
Maintainer: Ahmed ElSayed
Architecture: amd64
Version: 2.7.2508-1
Replaces: azure-functions-core-tools, azure-functions-core-tools-2
Conflicts: azure-functions-core-tools, azure-functions-core-tools-2
Filename: pool/main/a/azure-functions-core-tools/azure-functions-core-tools_2.7.2508-1.deb
Size: 148515160
MD5sum: cff5da59d6318da0ac46467e2814e8fa
SHA1: da9a5cf0649b55017ef83100f76059fd81964e3a
SHA256: ef77e3dbdf13a0ca7d79478ae36286bd1e2dd54c842db5a6483eb5696b5d4724
SHA512: 720b7ef1b76a480b8fb74794245e3eb283adf03e60cecebfee8399e6f8bf8d9e678199c22cc59bc7710fa1c8229781a4e2295b50fe8e7d0d2de7b53d232e5669
Description: Azure Function Core Tools v2
The Azure Functions Core Tools provide a local development experience
for creating, developing, testing, running, and debugging Azure
Functions.
Homepage: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local#run-azure-functions-core-tools
Vcs-Git: https://github.com/Azure/azure-functions-core-tools.git
```
This violates https://wiki.debian.org/DebianRepository/Format#A.22Packages.22_Indices
which states that the Depends (and other) fields much match *exactly*
or a client might recognize a metadata mismatch, which is why I'm
writing you :). We have tooling that mirrors repos for internal use
that gets tripped up by this specific case.
The easiest fix here is probably just to remove the offending package
(I think it's just version 2.7.2508-1) from the repo. If the package
is actually needed then rebuilding it without the empty Depends field
(just, no depends field at all instead) should work too.
Thanks so much for your attention, I know this is an odd request!
Contributor guide
Research direction
Inspect the azure-functions-core-tools_2.7.2508-1.deb artifact and its corresponding Packages entry using dpkg-deb and the linked repository metadata. Determine whether the package should be removed or rebuilt, then verify that the resulting package and index agree exactly on the Depends field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, debian
- Domain
- devops, release
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100