Your message dated Tue, 10 Sep 2024 12:00:10 +0000 with message-id <E1snzXW-001bXJ-C7@fasolo.debian.org> and subject line Bug#1080428: fixed in golang-github-go-viper-mapstructure 2.1.0-1 has caused the Debian Bug report #1080428, regarding ITP: golang-github-go-viper-mapstructure -- decode generic map values into native Go structures and vice versa to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1080428: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080428 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: ITP: golang-github-go-viper-mapstructure -- decode generic map values into native Go structures and vice versa
- From: Guillem Jover <gjover@sipwise.com>
- Date: Tue, 3 Sep 2024 21:59:42 +0200
- Message-id: <[🔎] ZtdqrlmQkSmlXTLT@thunder.hadrons.org>
Package: wnpp Severity: wishlist Owner: Guillem Jover <gjover@sipwise.com> * Package name : golang-github-go-viper-mapstructure Version : 2.1.0-1 Upstream Author : Viper * URL : https://github.com/go-viper/mapstructure * License : Expat Programming Lang: Go Description : decode generic map values into native Go structures and vice versa mapstructure is a Go library for decoding generic map values to structures and vice versa, while providing helpful error handling. . This library is most useful when decoding values from some data stream (JSON, Gob, etc.) where you don't *quite* know the structure of the underlying data until you read a part of it. You can therefore read a map[string]interface{} and use this library to decode it into the proper underlying native Go structure. . Go offers fantastic standard libraries for decoding formats such as JSON. The standard method is to have a struct pre-created, and populate that struct from the bytes of the encoded format. This is great, but the problem is if you have configuration or an encoding that changes slightly depending on specific fields. . Perhaps we can't populate a specific structure without first reading the "type" field from the JSON. We could always do two passes over the decoding of the JSON (reading the "type" first, and the rest later). However, it is much simpler to just decode this into a map[string]interface{} structure, read the "type" key, then use something like this library to decode it into the proper structure. . This library is a blessed fork of github.com/mitchellh/mapstructure, which has been archived by its upstream. See https://github.com/mitchellh/mapstructure/issues/349. . You can migrate to this package by changing your import paths in your Go files to github.com/go-viper/mapstructure/v2. The API is the same, so you don't need to change anything else. This package is a dependency for golang-opentelemetry-collector. Thanks, Guillem
--- End Message ---
--- Begin Message ---
- To: 1080428-close@bugs.debian.org
- Subject: Bug#1080428: fixed in golang-github-go-viper-mapstructure 2.1.0-1
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Tue, 10 Sep 2024 12:00:10 +0000
- Message-id: <E1snzXW-001bXJ-C7@fasolo.debian.org>
- Reply-to: Guillem Jover <gjover@sipwise.com>
Source: golang-github-go-viper-mapstructure Source-Version: 2.1.0-1 Done: Guillem Jover <gjover@sipwise.com> We believe that the bug you reported is fixed in the latest version of golang-github-go-viper-mapstructure, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1080428@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Guillem Jover <gjover@sipwise.com> (supplier of updated golang-github-go-viper-mapstructure package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Mon, 09 Sep 2024 15:30:59 +0200 Source: golang-github-go-viper-mapstructure Binary: golang-github-go-viper-mapstructure-dev Architecture: source all Version: 2.1.0-1 Distribution: unstable Urgency: medium Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org> Changed-By: Guillem Jover <gjover@sipwise.com> Description: golang-github-go-viper-mapstructure-dev - decode generic map values into native Go structures and vice vers Closes: 1080428 Changes: golang-github-go-viper-mapstructure (2.1.0-1) unstable; urgency=medium . * Initial release. (Closes: #1080428) Checksums-Sha1: 08329736425d2de864133036f7abcaa7f733d07b 2433 golang-github-go-viper-mapstructure_2.1.0-1.dsc 2e6163c10020bbf028afd90a3f68efb0f8b13031 40912 golang-github-go-viper-mapstructure_2.1.0.orig.tar.gz c16b551d97c4732512bee0cb410ed18d31b8c1bb 3320 golang-github-go-viper-mapstructure_2.1.0-1.debian.tar.xz c204935318edb659fe5148b9ccd3abd8ce0c2936 33756 golang-github-go-viper-mapstructure-dev_2.1.0-1_all.deb 03d38427aabdcc931e4230bf908933adf7dc6d49 5982 golang-github-go-viper-mapstructure_2.1.0-1_amd64.buildinfo Checksums-Sha256: d9abb8e5dc5ccd78cb28cc2927bcbb550cab36f4460f434fdd6acbac929085e6 2433 golang-github-go-viper-mapstructure_2.1.0-1.dsc 5ef41e3a52853c09dab2457f5bb3996a9d24ce35dcf11fe7dd568346745d2b35 40912 golang-github-go-viper-mapstructure_2.1.0.orig.tar.gz 713ebf3f351d6014eecb675931a399bcc42d96593da76ce1a0537a1bbeb080ef 3320 golang-github-go-viper-mapstructure_2.1.0-1.debian.tar.xz f9879c0380b4b3d053eefcca36873c8c4eccf6aec2eb8f755d1273f535ca51e6 33756 golang-github-go-viper-mapstructure-dev_2.1.0-1_all.deb cd0ec32b858adc212533f439e0b3874e5a55851cdc3cbfaa8a4252aca6e626cf 5982 golang-github-go-viper-mapstructure_2.1.0-1_amd64.buildinfo Files: e323ac6408f37f6937b662d0bdafc6fb 2433 golang optional golang-github-go-viper-mapstructure_2.1.0-1.dsc 1e4969853cfefcac7cf01dc6b7aece4f 40912 golang optional golang-github-go-viper-mapstructure_2.1.0.orig.tar.gz 31c1c047dc8475223a912354e76ec298 3320 golang optional golang-github-go-viper-mapstructure_2.1.0-1.debian.tar.xz 4ade61690685baf974aa34f1e63901a3 33756 golang optional golang-github-go-viper-mapstructure-dev_2.1.0-1_all.deb fe181aa2ab829aca4fd3d117f739cd80 5982 golang optional golang-github-go-viper-mapstructure_2.1.0-1_amd64.buildinfo -----BEGIN PGP SIGNATURE----- wsG7BAEBCgBvBYJm3vwuCRC5cr8+pK5Xo0cUAAAAAAAeACBzYWx0QG5vdGF0aW9u cy5zZXF1b2lhLXBncC5vcmc734V5ZSLWfHblOIzDUCILgCeLuf+mbrycQWaTvAzr sBYhBE8+dPQ2BQwQ9WlldLlyvz6krlejAAC9EQ/9GQPHON9cJnqkBqFL9VBJ/D2L ARIXrEeXM7xc/ZCq+GssAoMciT0ijeI17rh/Vb4vjy1y6GReZYYlEJ0XdgnSopCJ hHjJ70qLiL9Zn/60+wmjcrjNHTEtTtNPKOHwPqPZM96P2QkZD53elK25+uU7xFTI /vyCf57fXyQqVYV1IuOHL9U/thoPMeECW1SmO2GutdFlqt0oOcnIw8QiM1ZBqdBN QymEYn00tbL5FC0+8LP76D1bk6FCX+p9iz9ojk6T3RxJcpBauMZ0mzZU2rgZD/VS ithRi3cuoiAvwZzRcNGpoZGHLKK/X9AVTlbRctAN5IFC9O1hxzW6tRXdXs6iCfVM DcYVKVH6GJwcF9+h6FfuzTNhOdCn65HzKs+TvhazNuaBLDGl5Kf+5Yg4pMXKcYhk oRcricnEj0Ts7wtlbHl4tH9ZQyXsGsk8vfQ8gvtd71uaNbAa71pKf7YjE7gmVmVX H8SzAbwJrSbMbReEXbkUQkWAk3CqzFZYvnjwMgLkQ1SVIRD5ACFPFeDvAHMr3PAk UlvWw3JSlKZtxvPxIrJ3fSKkUP+FPB399x4DbgQJjFLEl2wu7O5nljNc3i1JzPhp j8FVZow9ND2sPOv9awaMazdZ0jDcAYbUd/y8vD7vvxyiei4PSE74DBlzBFWC/gWG KmvfEh+KDj/ilVF5pDE= =UJKF -----END PGP SIGNATURE-----Attachment: pgphbqTGVLf8L.pgp
Description: PGP signature
--- End Message ---