Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c18b' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/7073031-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 0.70 PID: 12823 Logging PID: 12824 Task: {'appstream': False, 'background': False, 'build_id': 7073031, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': '4cf3fe64a937ab4e5b59c94e0da5044ce4d23815', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-pip-2ebe6bf4/golang-github-clbanning-mxj', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'golang-github-clbanning-mxj', 'package_version': '2.5.5-7', 'project_dirname': 'python-pip-2ebe6bf4', 'project_name': 'python-pip-2ebe6bf4', 'project_owner': 'thrnciar', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/thrnciar/python-pip-2ebe6bf4/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None}], 'sandbox': 'thrnciar/python-pip-2ebe6bf4--thrnciar', 'source_json': {}, 'source_type': None, 'submitter': 'thrnciar', 'tags': [], 'task_id': '7073031-fedora-rawhide-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-pip-2ebe6bf4/golang-github-clbanning-mxj /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-pip-2ebe6bf4/golang-github-clbanning-mxj', '/var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj'... Running: git checkout 4cf3fe64a937ab4e5b59c94e0da5044ce4d23815 -- cmd: ['git', 'checkout', '4cf3fe64a937ab4e5b59c94e0da5044ce4d23815', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj rc: 0 stdout: stderr: Note: switching to '4cf3fe64a937ab4e5b59c94e0da5044ce4d23815'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 4cf3fe6 automatic import of golang-github-clbanning-mxj Running: copr-distgit-client sources /usr/bin/tail: /var/lib/copr-rpmbuild/main.log: file truncated cmd: ['copr-distgit-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading mxj-2.5.5.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o mxj-2.5.5.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/thrnciar/python-pip-2ebe6bf4/golang-github-clbanning-mxj/mxj-2.5.5.tar.gz/md5/503c39afdd34260b313e27dd97380ae0/mxj-2.5.5.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1069k 100 1069k 0 0 6529k 0 --:--:-- --:--:-- --:--:-- 6523k INFO: Reading stdout from command: md5sum mxj-2.5.5.tar.gz Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj/golang-github-clbanning-mxj.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1709187646.092446 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 5.5 starting (python version = 3.12.1, NVR = mock-5.5-1.fc39), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj/golang-github-clbanning-mxj.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1709187646.092446 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj/golang-github-clbanning-mxj.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 5.5 INFO: Mock Version: 5.5 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1709187646.092446/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using bootstrap image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Copy content of container registry.fedoraproject.org/fedora:rawhide to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1709187646.092446/root INFO: Checking that registry.fedoraproject.org/fedora:rawhide image matches host's architecture INFO: mounting registry.fedoraproject.org/fedora:rawhide with podman image mount INFO: image registry.fedoraproject.org/fedora:rawhide as /var/lib/containers/storage/overlay/48a2c6fc7b98e0c1b5490ae35ea42b03452a2c2274a6c850ea9e24c5a48cfd69/merged INFO: umounting image registry.fedoraproject.org/fedora:rawhide (/var/lib/containers/storage/overlay/48a2c6fc7b98e0c1b5490ae35ea42b03452a2c2274a6c850ea9e24c5a48cfd69/merged) with podman image umount INFO: Using 'dnf' instead of 'dnf5' for bootstrap chroot INFO: Package manager dnf detected and used (fallback) INFO: Bootstrap image not marked ready Start(bootstrap): installing dnf5 tooling No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 6.9 MB/s | 4.5 MB 00:00 fedora 1.7 MB/s | 20 MB 00:12 Last metadata expiration check: 0:00:01 ago on Thu Feb 29 06:21:02 2024. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: dnf5 x86_64 5.1.13-1.fc41 fedora 605 k dnf5-plugins x86_64 5.1.13-1.fc41 fedora 352 k Installing dependencies: fmt x86_64 10.2.1-3.fc41 copr_base 126 k libdnf5 x86_64 5.1.13-1.fc41 fedora 990 k libdnf5-cli x86_64 5.1.13-1.fc41 fedora 263 k sdbus-cpp x86_64 1.5.0-1.fc41 fedora 113 k Transaction Summary ================================================================================ Install 6 Packages Total download size: 2.4 M Installed size: 6.6 M Downloading Packages: (1/6): fmt-10.2.1-3.fc41.x86_64.rpm 2.5 MB/s | 126 kB 00:00 (2/6): dnf5-plugins-5.1.13-1.fc41.x86_64.rpm 865 kB/s | 352 kB 00:00 (3/6): dnf5-5.1.13-1.fc41.x86_64.rpm 1.3 MB/s | 605 kB 00:00 (4/6): libdnf5-cli-5.1.13-1.fc41.x86_64.rpm 3.3 MB/s | 263 kB 00:00 (5/6): sdbus-cpp-1.5.0-1.fc41.x86_64.rpm 1.9 MB/s | 113 kB 00:00 (6/6): libdnf5-5.1.13-1.fc41.x86_64.rpm 2.1 MB/s | 990 kB 00:00 -------------------------------------------------------------------------------- Total 4.3 MB/s | 2.4 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : fmt-10.2.1-3.fc41.x86_64 1/6 Installing : libdnf5-5.1.13-1.fc41.x86_64 2/6 Installing : libdnf5-cli-5.1.13-1.fc41.x86_64 3/6 Installing : dnf5-5.1.13-1.fc41.x86_64 4/6 Installing : sdbus-cpp-1.5.0-1.fc41.x86_64 5/6 Installing : dnf5-plugins-5.1.13-1.fc41.x86_64 6/6 Running scriptlet: dnf5-plugins-5.1.13-1.fc41.x86_64 6/6 Installed: dnf5-5.1.13-1.fc41.x86_64 dnf5-plugins-5.1.13-1.fc41.x86_64 fmt-10.2.1-3.fc41.x86_64 libdnf5-5.1.13-1.fc41.x86_64 libdnf5-cli-5.1.13-1.fc41.x86_64 sdbus-cpp-1.5.0-1.fc41.x86_64 Complete! INFO: Switching package manager from dnf to the dnf5 (direct choice) Finish(bootstrap): installing dnf5 tooling Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1709187646.092446/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.19.1.1-1.fc40.x86_64 rpm-sequoia-1.6.0-2.fc40.x86_64 python3-dnf-4.19.0-1.fc40.noarch yum-4.19.0-1.fc40.noarch dnf5-5.1.13-1.fc41.x86_64 dnf5-plugins-5.1.13-1.fc41.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: fedora 100% | 665.4 KiB/s | 17.3 KiB | 00m00s Copr repository 100% | 51.2 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 27.7 MiB/s | 4.5 MiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 5.2.26-3.fc40 fedora 8.1 MiB bzip2 x86_64 1.0.8-18.fc40 fedora 91.7 KiB coreutils x86_64 9.4-6.fc40 fedora 5.8 MiB cpio x86_64 2.15-1.fc40 fedora 1.1 MiB diffutils x86_64 3.10-5.fc40 fedora 1.6 MiB fedora-release-common noarch 41-0.6 copr_base 19.2 KiB findutils x86_64 1:4.9.0-8.fc40 fedora 1.5 MiB gawk x86_64 5.3.0-3.fc40 fedora 1.7 MiB glibc-minimal-langpack x86_64 2.39.9000-4.fc41 copr_base 0.0 B grep x86_64 3.11-7.fc40 fedora 1.0 MiB gzip x86_64 1.13-1.fc40 fedora 385.0 KiB info x86_64 7.1-2.fc40 fedora 357.8 KiB patch x86_64 2.7.6-24.fc40 fedora 262.8 KiB redhat-rpm-config noarch 285-1.fc41 fedora 185.1 KiB rpm-build x86_64 4.19.1.1-1.fc40 fedora 173.7 KiB sed x86_64 4.9-1.fc40 fedora 861.5 KiB shadow-utils x86_64 2:4.15.0rc2-1.fc41 fedora 4.1 MiB tar x86_64 2:1.35-3.fc40 fedora 2.9 MiB unzip x86_64 6.0-63.fc40 fedora 382.8 KiB util-linux x86_64 2.40-0.9.rc1.fc41 fedora 3.7 MiB which x86_64 2.21-41.fc40 fedora 80.2 KiB xz x86_64 5.4.6-1.fc40 fedora 2.0 MiB Installing dependencies: alternatives x86_64 1.26-3.fc41 copr_base 62.3 KiB ansible-srpm-macros noarch 1-14.fc40 fedora 35.7 KiB audit-libs x86_64 4.0-8.fc41 copr_base 311.3 KiB authselect x86_64 1.5.0-5.fc41 copr_base 153.6 KiB authselect-libs x86_64 1.5.0-5.fc41 copr_base 818.3 KiB basesystem noarch 11-20.fc40 fedora 0.0 B binutils x86_64 2.42.50-4.fc41 copr_base 26.6 MiB binutils-gold x86_64 2.42.50-4.fc41 copr_base 2.0 MiB bzip2-libs x86_64 1.0.8-18.fc40 fedora 80.7 KiB ca-certificates noarch 2023.2.62_v7.0.401-6.fc41 copr_base 2.3 MiB coreutils-common x86_64 9.4-6.fc40 fedora 11.4 MiB cracklib x86_64 2.9.11-5.fc40 fedora 238.9 KiB crypto-policies noarch 20240201-2.git9f501f3.fc41 copr_base 149.3 KiB curl x86_64 8.6.0-7.fc41 copr_base 734.6 KiB cyrus-sasl-lib x86_64 2.1.28-19.fc41 copr_base 2.3 MiB debugedit x86_64 5.0-14.fc40 fedora 199.0 KiB dwz x86_64 0.15-6.fc41 copr_base 290.9 KiB ed x86_64 1.20.1-1.fc41 fedora 146.5 KiB efi-srpm-macros noarch 5-11.fc40 fedora 40.1 KiB elfutils x86_64 0.190-6.fc41 copr_base 2.5 MiB elfutils-debuginfod-client x86_64 0.190-6.fc41 copr_base 64.9 KiB elfutils-default-yama-scope noarch 0.190-6.fc41 copr_base 1.8 KiB elfutils-libelf x86_64 0.190-6.fc41 copr_base 1.0 MiB elfutils-libs x86_64 0.190-6.fc41 copr_base 642.1 KiB fedora-gpg-keys noarch 41-0.1 fedora 125.0 KiB fedora-release noarch 41-0.6 copr_base 0.0 B fedora-release-identity-basic noarch 41-0.6 copr_base 694.0 B fedora-repos noarch 41-0.1 fedora 4.9 KiB fedora-repos-rawhide noarch 41-0.1 fedora 2.2 KiB file x86_64 5.45-5.fc41 copr_base 103.5 KiB file-libs x86_64 5.45-5.fc41 copr_base 9.9 MiB filesystem x86_64 3.18-8.fc40 fedora 106.0 B fonts-srpm-macros noarch 1:2.0.5-14.fc40 fedora 55.3 KiB forge-srpm-macros noarch 0.2.0-3.fc41 copr_base 37.4 KiB fpc-srpm-macros noarch 1.3-12.fc40 fedora 144.0 B gdb-minimal x86_64 14.1-9.fc41 copr_base 12.7 MiB gdbm x86_64 1:1.23-6.fc40 fedora 460.9 KiB gdbm-libs x86_64 1:1.23-6.fc40 fedora 121.9 KiB ghc-srpm-macros noarch 1.6.1-5.fc40 fedora 369.0 B glibc x86_64 2.39.9000-4.fc41 copr_base 6.7 MiB glibc-common x86_64 2.39.9000-4.fc41 copr_base 1.0 MiB glibc-gconv-extra x86_64 2.39.9000-4.fc41 copr_base 7.8 MiB gmp x86_64 1:6.3.0-1.fc41 fedora 803.4 KiB gnat-srpm-macros noarch 6-5.fc40 fedora 1.0 KiB go-srpm-macros noarch 3.4.0-2.fc40 fedora 60.6 KiB jansson x86_64 2.13.1-9.fc40 fedora 88.3 KiB kernel-srpm-macros noarch 1.0-22.fc40 fedora 1.9 KiB keyutils-libs x86_64 1.6.3-3.fc40 fedora 54.4 KiB krb5-libs x86_64 1.21.2-5.fc40 fedora 2.3 MiB libacl x86_64 2.3.2-1.fc40 fedora 40.0 KiB libarchive x86_64 3.7.2-3.fc40 fedora 914.6 KiB libattr x86_64 2.5.2-3.fc40 fedora 28.5 KiB libblkid x86_64 2.40-0.9.rc1.fc41 fedora 237.0 KiB libbrotli x86_64 1.1.0-3.fc41 copr_base 829.5 KiB libcap x86_64 2.69-3.fc40 fedora 217.2 KiB libcap-ng x86_64 0.8.4-4.fc40 fedora 73.1 KiB libcom_err x86_64 1.47.0-5.fc41 copr_base 67.2 KiB libcurl x86_64 8.6.0-7.fc41 copr_base 772.8 KiB libeconf x86_64 0.5.2-3.fc40 fedora 52.0 KiB libevent x86_64 2.1.12-12.fc40 fedora 895.6 KiB libfdisk x86_64 2.40-0.9.rc1.fc41 fedora 363.3 KiB libffi x86_64 3.4.4-7.fc40 fedora 81.6 KiB libgcc x86_64 14.0.1-0.7.fc41 fedora 270.6 KiB libgomp x86_64 14.0.1-0.7.fc41 fedora 518.0 KiB libidn2 x86_64 2.3.7-1.fc40 fedora 329.1 KiB libmount x86_64 2.40-0.9.rc1.fc41 fedora 352.1 KiB libnghttp2 x86_64 1.59.0-2.fc40 fedora 166.1 KiB libnsl2 x86_64 2.0.1-1.fc40 fedora 57.9 KiB libpkgconf x86_64 2.1.0-1.fc40 fedora 74.2 KiB libpsl x86_64 0.21.5-3.fc40 fedora 80.5 KiB libpwquality x86_64 1.4.5-9.fc40 fedora 417.8 KiB libselinux x86_64 3.6-4.fc40 fedora 173.0 KiB libsemanage x86_64 3.6-3.fc40 fedora 293.5 KiB libsepol x86_64 3.6-3.fc40 fedora 802.0 KiB libsmartcols x86_64 2.40-0.9.rc1.fc41 fedora 180.7 KiB libssh x86_64 0.10.6-4.fc40 fedora 509.3 KiB libssh-config noarch 0.10.6-4.fc40 fedora 277.0 B libstdc++ x86_64 14.0.1-0.7.fc41 fedora 2.8 MiB libtasn1 x86_64 4.19.0-6.fc40 fedora 175.7 KiB libtirpc x86_64 1.3.4-1.rc2.fc40.2 fedora 202.8 KiB libtool-ltdl x86_64 2.4.7-10.fc40 fedora 66.2 KiB libunistring x86_64 1.1-7.fc41 fedora 1.7 MiB libutempter x86_64 1.2.1-13.fc40 fedora 57.7 KiB libuuid x86_64 2.40-0.9.rc1.fc41 fedora 37.6 KiB libverto x86_64 0.3.2-8.fc40 fedora 29.5 KiB libxcrypt x86_64 4.4.36-5.fc40 fedora 262.8 KiB libxml2 x86_64 2.12.5-1.fc40 fedora 1.7 MiB libzstd x86_64 1.5.5-5.fc40 fedora 772.0 KiB lua-libs x86_64 5.4.6-5.fc40 fedora 281.1 KiB lua-srpm-macros noarch 1-13.fc40 fedora 1.3 KiB lz4-libs x86_64 1.9.4-6.fc40 fedora 129.4 KiB mpfr x86_64 4.2.1-3.fc40 fedora 832.0 KiB ncurses-base noarch 6.4-12.20240127.fc40 fedora 326.2 KiB ncurses-libs x86_64 6.4-12.20240127.fc40 fedora 963.2 KiB ocaml-srpm-macros noarch 9-3.fc40 fedora 1.9 KiB openblas-srpm-macros noarch 2-16.fc40 fedora 104.0 B openldap x86_64 2.6.7-1.fc40 fedora 635.1 KiB openssl-libs x86_64 1:3.2.1-2.fc40 fedora 7.8 MiB p11-kit x86_64 0.25.3-4.fc40 fedora 2.2 MiB p11-kit-trust x86_64 0.25.3-4.fc40 fedora 391.4 KiB package-notes-srpm-macros noarch 0.5-11.fc40 fedora 1.6 KiB pam x86_64 1.6.0-2.fc41 fedora 1.8 MiB pam-libs x86_64 1.6.0-2.fc41 fedora 135.0 KiB pcre2 x86_64 10.42-2.fc40.2 fedora 637.6 KiB pcre2-syntax noarch 10.42-2.fc40.2 fedora 235.1 KiB perl-srpm-macros noarch 1-53.fc40 fedora 861.0 B pkgconf x86_64 2.1.0-1.fc40 fedora 82.4 KiB pkgconf-m4 noarch 2.1.0-1.fc40 fedora 13.9 KiB pkgconf-pkg-config x86_64 2.1.0-1.fc40 fedora 989.0 B popt x86_64 1.19-6.fc40 fedora 136.9 KiB publicsuffix-list-dafsa noarch 20240107-3.fc40 fedora 67.5 KiB pyproject-srpm-macros noarch 1.12.0-1.fc40 fedora 1.5 KiB python-srpm-macros noarch 3.12-7.fc40 fedora 50.1 KiB qt5-srpm-macros noarch 5.15.12-3.fc40 fedora 492.0 B qt6-srpm-macros noarch 6.6.2-1.fc41 fedora 456.0 B readline x86_64 8.2-8.fc40 fedora 489.2 KiB rpm x86_64 4.19.1.1-1.fc40 fedora 3.0 MiB rpm-build-libs x86_64 4.19.1.1-1.fc40 fedora 198.4 KiB rpm-libs x86_64 4.19.1.1-1.fc40 fedora 709.9 KiB rpm-sequoia x86_64 1.6.0-2.fc40 fedora 2.2 MiB rust-srpm-macros noarch 26.1-1.fc41 fedora 4.8 KiB setup noarch 2.14.5-2.fc40 fedora 720.4 KiB sqlite-libs x86_64 3.45.1-2.fc40 fedora 1.4 MiB systemd-libs x86_64 255.3-1.fc40 fedora 1.9 MiB util-linux-core x86_64 2.40-0.9.rc1.fc41 fedora 1.4 MiB xxhash-libs x86_64 0.8.2-2.fc40 fedora 88.5 KiB xz-libs x86_64 5.4.6-1.fc40 fedora 209.8 KiB zig-srpm-macros noarch 1-2.fc40 fedora 1.1 KiB zip x86_64 3.0-40.fc40 fedora 703.2 KiB zlib-ng-compat x86_64 2.1.6-2.fc40 fedora 134.0 KiB zstd x86_64 1.5.5-5.fc40 fedora 1.6 MiB Installing groups: Buildsystem building group Transaction Summary: Installing: 153 packages Total size of inbound packages is 53 MiB. Need to download 0 B. After this operation 178 MiB will be used (install 178 MiB, remove 0 B). [ 1/153] tar-2:1.35-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/153] bzip2-0:1.0.8-18.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/153] redhat-rpm-config-0:285-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/153] rpm-build-0:4.19.1.1-1.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/153] unzip-0:6.0-63.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/153] cpio-0:2.15-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/153] which-0:2.21-41.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/153] bash-0:5.2.26-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/153] coreutils-0:9.4-6.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 10/153] grep-0:3.11-7.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 11/153] patch-0:2.7.6-24.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 12/153] sed-0:4.9-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 13/153] shadow-utils-2:4.15.0rc2-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 14/153] diffutils-0:3.10-5.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 15/153] findutils-1:4.9.0-8.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 16/153] gzip-0:1.13-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 17/153] info-0:7.1-2.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 18/153] xz-0:5.4.6-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 19/153] util-linux-0:2.40-0.9.rc1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 20/153] fedora-release-common-0:41-0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 21/153] gawk-0:5.3.0-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 22/153] glibc-minimal-langpack-0:2.39 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 23/153] libacl-0:2.3.2-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 24/153] libselinux-0:3.6-4.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 25/153] bzip2-libs-0:1.0.8-18.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 26/153] ansible-srpm-macros-0:1-14.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 27/153] efi-srpm-macros-0:5-11.fc40.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 28/153] fonts-srpm-macros-1:2.0.5-14. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 29/153] fpc-srpm-macros-0:1.3-12.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 30/153] ghc-srpm-macros-0:1.6.1-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 31/153] gnat-srpm-macros-0:6-5.fc40.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 32/153] go-srpm-macros-0:3.4.0-2.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 33/153] kernel-srpm-macros-0:1.0-22.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 34/153] lua-srpm-macros-0:1-13.fc40.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 35/153] ocaml-srpm-macros-0:9-3.fc40. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 36/153] openblas-srpm-macros-0:2-16.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 37/153] package-notes-srpm-macros-0:0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 38/153] perl-srpm-macros-0:1-53.fc40. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 39/153] pyproject-srpm-macros-0:1.12. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 40/153] python-srpm-macros-0:3.12-7.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 41/153] qt5-srpm-macros-0:5.15.12-3.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 42/153] qt6-srpm-macros-0:6.6.2-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 43/153] rpm-0:4.19.1.1-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 44/153] rust-srpm-macros-0:26.1-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 45/153] zig-srpm-macros-0:1-2.fc40.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 46/153] zip-0:3.0-40.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 47/153] debugedit-0:5.0-14.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 48/153] popt-0:1.19-6.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 49/153] readline-0:8.2-8.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 50/153] rpm-build-libs-0:4.19.1.1-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 51/153] rpm-libs-0:4.19.1.1-1.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 52/153] zstd-0:1.5.5-5.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 53/153] filesystem-0:3.18-8.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 54/153] ncurses-libs-0:6.4-12.2024012 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 55/153] coreutils-common-0:9.4-6.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 56/153] gmp-1:6.3.0-1.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 57/153] libattr-0:2.5.2-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 58/153] libcap-0:2.69-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 59/153] openssl-libs-1:3.2.1-2.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 60/153] pcre2-0:10.42-2.fc40.2.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 61/153] ed-0:1.20.1-1.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 62/153] libeconf-0:0.5.2-3.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 63/153] libsemanage-0:3.6-3.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 64/153] libxcrypt-0:4.4.36-5.fc40.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 65/153] pam-libs-0:1.6.0-2.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 66/153] setup-0:2.14.5-2.fc40.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 67/153] xz-libs-0:5.4.6-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 68/153] libblkid-0:2.40-0.9.rc1.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 69/153] libcap-ng-0:0.8.4-4.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 70/153] libfdisk-0:2.40-0.9.rc1.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 71/153] libmount-0:2.40-0.9.rc1.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 72/153] libsmartcols-0:2.40-0.9.rc1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 73/153] libutempter-0:1.2.1-13.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 74/153] libuuid-0:2.40-0.9.rc1.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 75/153] systemd-libs-0:255.3-1.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 76/153] util-linux-core-0:2.40-0.9.rc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 77/153] zlib-ng-compat-0:2.1.6-2.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 78/153] fedora-repos-0:41-0.1.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 79/153] mpfr-0:4.2.1-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 80/153] glibc-0:2.39.9000-4.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 81/153] glibc-common-0:2.39.9000-4.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 82/153] libsepol-0:3.6-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 83/153] libarchive-0:3.7.2-3.fc40.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 84/153] libgcc-0:14.0.1-0.7.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 85/153] libgomp-0:14.0.1-0.7.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 86/153] lua-libs-0:5.4.6-5.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 87/153] libzstd-0:1.5.5-5.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 88/153] rpm-sequoia-0:1.6.0-2.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 89/153] sqlite-libs-0:3.45.1-2.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 90/153] libstdc++-0:14.0.1-0.7.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 91/153] lz4-libs-0:1.9.4-6.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 92/153] ncurses-base-0:6.4-12.2024012 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 93/153] pcre2-syntax-0:10.42-2.fc40.2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 94/153] fedora-gpg-keys-0:41-0.1.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 95/153] fedora-repos-rawhide-0:41-0.1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 96/153] glibc-gconv-extra-0:2.39.9000 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 97/153] basesystem-0:11-20.fc40.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 98/153] libxml2-0:2.12.5-1.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 99/153] pam-0:1.6.0-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [100/153] pkgconf-pkg-config-0:2.1.0-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [101/153] gdbm-1:1.23-6.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [102/153] gdbm-libs-1:1.23-6.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [103/153] libnsl2-0:2.0.1-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [104/153] libpwquality-0:1.4.5-9.fc40.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [105/153] libtirpc-0:1.3.4-1.rc2.fc40.2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [106/153] pkgconf-0:2.1.0-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [107/153] pkgconf-m4-0:2.1.0-1.fc40.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [108/153] cracklib-0:2.9.11-5.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [109/153] krb5-libs-0:1.21.2-5.fc40.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [110/153] libpkgconf-0:2.1.0-1.fc40.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [111/153] keyutils-libs-0:1.6.3-3.fc40. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [112/153] libverto-0:0.3.2-8.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [113/153] audit-libs-0:4.0-8.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [114/153] authselect-libs-0:1.5.0-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [115/153] authselect-0:1.5.0-5.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [116/153] elfutils-libelf-0:0.190-6.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [117/153] elfutils-libs-0:0.190-6.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [118/153] elfutils-0:0.190-6.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [119/153] file-libs-0:5.45-5.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [120/153] binutils-0:2.42.50-4.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [121/153] elfutils-debuginfod-client-0: 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [122/153] jansson-0:2.13.1-9.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [123/153] file-0:5.45-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [124/153] curl-0:8.6.0-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [125/153] dwz-0:0.15-6.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [126/153] forge-srpm-macros-0:0.2.0-3.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [127/153] ca-certificates-0:2023.2.62_v 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [128/153] p11-kit-0:0.25.3-4.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [129/153] p11-kit-trust-0:0.25.3-4.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [130/153] libffi-0:3.4.4-7.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [131/153] libtasn1-0:4.19.0-6.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [132/153] crypto-policies-0:20240201-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [133/153] libcom_err-0:1.47.0-5.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [134/153] elfutils-default-yama-scope-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [135/153] alternatives-0:1.26-3.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [136/153] binutils-gold-0:2.42.50-4.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [137/153] fedora-release-0:41-0.6.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [138/153] fedora-release-identity-basic 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [139/153] libcurl-0:8.6.0-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [140/153] libidn2-0:2.3.7-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [141/153] libnghttp2-0:1.59.0-2.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [142/153] libpsl-0:0.21.5-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [143/153] libssh-0:0.10.6-4.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [144/153] openldap-0:2.6.7-1.fc40.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [145/153] libunistring-0:1.1-7.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [146/153] publicsuffix-list-dafsa-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [147/153] libssh-config-0:0.10.6-4.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [148/153] libevent-0:2.1.12-12.fc40.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [149/153] libtool-ltdl-0:2.4.7-10.fc40. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [150/153] gdb-minimal-0:14.1-9.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [151/153] xxhash-libs-0:0.8.2-2.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [152/153] cyrus-sasl-lib-0:2.1.28-19.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [153/153] libbrotli-0:1.1.0-3.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [153/153] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction Importing PGP key 0xE99D6AD1: Userid : "Fedora (41) " Fingerprint: 466CF2D8B60BC3057AA9453ED0622462E99D6AD1 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-41-primary The key was successfully imported. Importing PGP key 0xE99D6AD1: Userid : "Fedora (41) " Fingerprint: 466CF2D8B60BC3057AA9453ED0622462E99D6AD1 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-41-primary The key was successfully imported. Importing PGP key 0xA15B79CC: Userid : "Fedora (40) " Fingerprint: 115DF9AEF857853EE8445D0A0727707EA15B79CC From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-40-primary The key was successfully imported. [ 1/155] Verify package files 100% | 579.0 B/s | 153.0 B | 00m00s >>> Running pre-transaction scriptlet: filesystem-0:3.18-8.fc40.x86_64 >>> Stop pre-transaction scriptlet: filesystem-0:3.18-8.fc40.x86_64 [ 2/155] Prepare transaction 100% | 1.8 KiB/s | 153.0 B | 00m00s [ 3/155] Installing libgcc-0:14.0.1-0. 100% | 88.6 MiB/s | 272.3 KiB | 00m00s >>> Running post-install scriptlet: libgcc-0:14.0.1-0.7.fc41.x86_64 >>> Stop post-install scriptlet: libgcc-0:14.0.1-0.7.fc41.x86_64 [ 4/155] Installing crypto-policies-0: 100% | 13.7 MiB/s | 181.7 KiB | 00m00s >>> Running post-install scriptlet: crypto-policies-0:20240201-2.git9f501f3.fc41 >>> Stop post-install scriptlet: crypto-policies-0:20240201-2.git9f501f3.fc41.no [ 5/155] Installing fedora-release-ide 100% | 929.7 KiB/s | 952.0 B | 00m00s [ 6/155] Installing fedora-gpg-keys-0: 100% | 16.6 MiB/s | 170.1 KiB | 00m00s [ 7/155] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.4 KiB | 00m00s [ 8/155] Installing fedora-repos-0:41- 100% | 5.6 MiB/s | 5.7 KiB | 00m00s [ 9/155] Installing fedora-release-com 100% | 11.4 MiB/s | 23.3 KiB | 00m00s [ 10/155] Installing fedora-release-0:4 100% | 0.0 B/s | 124.0 B | 00m00s [ 11/155] Installing setup-0:2.14.5-2.f 100% | 44.3 MiB/s | 725.8 KiB | 00m00s >>> Running post-install scriptlet: setup-0:2.14.5-2.fc40.noarch >>> Stop post-install scriptlet: setup-0:2.14.5-2.fc40.noarch [ 12/155] Installing filesystem-0:3.18- 100% | 1.6 MiB/s | 212.4 KiB | 00m00s [ 13/155] Installing basesystem-0:11-20 100% | 0.0 B/s | 124.0 B | 00m00s [ 14/155] Installing libssh-config-0:0. 100% | 796.9 KiB/s | 816.0 B | 00m00s [ 15/155] Installing publicsuffix-list- 100% | 66.7 MiB/s | 68.3 KiB | 00m00s [ 16/155] Installing pkgconf-m4-0:2.1.0 100% | 14.0 MiB/s | 14.3 KiB | 00m00s [ 17/155] Installing pcre2-syntax-0:10. 100% | 116.0 MiB/s | 237.6 KiB | 00m00s [ 18/155] Installing ncurses-base-0:6.4 100% | 34.3 MiB/s | 351.6 KiB | 00m00s [ 19/155] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 20/155] Installing ncurses-libs-0:6.4 100% | 135.3 MiB/s | 969.7 KiB | 00m00s >>> Running pre-install scriptlet: glibc-0:2.39.9000-4.fc41.x86_64 >>> Stop pre-install scriptlet: glibc-0:2.39.9000-4.fc41.x86_64 [ 21/155] Installing glibc-0:2.39.9000- 100% | 143.6 MiB/s | 6.7 MiB | 00m00s >>> Running post-install scriptlet: glibc-0:2.39.9000-4.fc41.x86_64 >>> Stop post-install scriptlet: glibc-0:2.39.9000-4.fc41.x86_64 [ 22/155] Installing bash-0:5.2.26-3.fc 100% | 247.3 MiB/s | 8.2 MiB | 00m00s >>> Running post-install scriptlet: bash-0:5.2.26-3.fc40.x86_64 >>> Stop post-install scriptlet: bash-0:5.2.26-3.fc40.x86_64 [ 23/155] Installing glibc-common-0:2.3 100% | 113.4 MiB/s | 1.0 MiB | 00m00s [ 24/155] Installing glibc-gconv-extra- 100% | 131.1 MiB/s | 7.9 MiB | 00m00s >>> Running post-install scriptlet: glibc-gconv-extra-0:2.39.9000-4.fc41.x86_64 >>> Stop post-install scriptlet: glibc-gconv-extra-0:2.39.9000-4.fc41.x86_64 [ 25/155] Installing zlib-ng-compat-0:2 100% | 131.7 MiB/s | 134.8 KiB | 00m00s [ 26/155] Installing xz-libs-0:5.4.6-1. 100% | 206.0 MiB/s | 210.9 KiB | 00m00s [ 27/155] Installing bzip2-libs-0:1.0.8 100% | 79.9 MiB/s | 81.8 KiB | 00m00s [ 28/155] Installing popt-0:1.19-6.fc40 100% | 35.0 MiB/s | 143.5 KiB | 00m00s [ 29/155] Installing readline-0:8.2-8.f 100% | 160.0 MiB/s | 491.4 KiB | 00m00s [ 30/155] Installing libuuid-0:2.40-0.9 100% | 38.0 MiB/s | 38.9 KiB | 00m00s [ 31/155] Installing libzstd-0:1.5.5-5. 100% | 251.7 MiB/s | 773.2 KiB | 00m00s [ 32/155] Installing elfutils-libelf-0: 100% | 246.4 MiB/s | 1.0 MiB | 00m00s [ 33/155] Installing libstdc++-0:14.0.1 100% | 251.1 MiB/s | 2.8 MiB | 00m00s [ 34/155] Installing libblkid-0:2.40-0. 100% | 116.2 MiB/s | 238.1 KiB | 00m00s [ 35/155] Installing gmp-1:6.3.0-1.fc41 100% | 196.7 MiB/s | 805.6 KiB | 00m00s [ 36/155] Installing libattr-0:2.5.2-3. 100% | 28.8 MiB/s | 29.5 KiB | 00m00s [ 37/155] Installing libacl-0:2.3.2-1.f 100% | 39.9 MiB/s | 40.8 KiB | 00m00s [ 38/155] Installing libxcrypt-0:4.4.36 100% | 129.7 MiB/s | 265.5 KiB | 00m00s [ 39/155] Installing libeconf-0:0.5.2-3 100% | 52.4 MiB/s | 53.7 KiB | 00m00s [ 40/155] Installing lz4-libs-0:1.9.4-6 100% | 127.4 MiB/s | 130.5 KiB | 00m00s [ 41/155] Installing gdbm-libs-1:1.23-6 100% | 60.3 MiB/s | 123.6 KiB | 00m00s [ 42/155] Installing mpfr-0:4.2.1-3.fc4 100% | 203.5 MiB/s | 833.5 KiB | 00m00s [ 43/155] Installing gawk-0:5.3.0-3.fc4 100% | 172.8 MiB/s | 1.7 MiB | 00m00s [ 44/155] Installing dwz-0:0.15-6.fc41. 100% | 142.7 MiB/s | 292.3 KiB | 00m00s [ 45/155] Installing unzip-0:6.0-63.fc4 100% | 125.8 MiB/s | 386.3 KiB | 00m00s [ 46/155] Installing file-libs-0:5.45-5 100% | 451.4 MiB/s | 9.9 MiB | 00m00s [ 47/155] Installing file-0:5.45-5.fc41 100% | 51.3 MiB/s | 105.0 KiB | 00m00s [ 48/155] Installing pcre2-0:10.42-2.fc 100% | 208.0 MiB/s | 639.1 KiB | 00m00s [ 49/155] Installing grep-0:3.11-7.fc40 100% | 111.5 MiB/s | 1.0 MiB | 00m00s [ 50/155] Installing xz-0:5.4.6-1.fc40. 100% | 143.0 MiB/s | 2.0 MiB | 00m00s [ 51/155] Installing libcap-ng-0:0.8.4- 100% | 73.2 MiB/s | 75.0 KiB | 00m00s [ 52/155] Installing audit-libs-0:4.0-8 100% | 153.0 MiB/s | 313.4 KiB | 00m00s [ 53/155] Installing pam-libs-0:1.6.0-2 100% | 67.0 MiB/s | 137.3 KiB | 00m00s [ 54/155] Installing libcap-0:2.69-3.fc 100% | 72.2 MiB/s | 221.9 KiB | 00m00s [ 55/155] Installing systemd-libs-0:255 100% | 241.3 MiB/s | 1.9 MiB | 00m00s [ 56/155] Installing libsmartcols-0:2.4 100% | 177.6 MiB/s | 181.9 KiB | 00m00s [ 57/155] Installing libsepol-0:3.6-3.f 100% | 261.4 MiB/s | 803.0 KiB | 00m00s [ 58/155] Installing libselinux-0:3.6-4 100% | 85.1 MiB/s | 174.3 KiB | 00m00s [ 59/155] Installing sed-0:4.9-1.fc40.x 100% | 121.3 MiB/s | 869.7 KiB | 00m00s [ 60/155] Installing findutils-1:4.9.0- 100% | 162.9 MiB/s | 1.5 MiB | 00m00s [ 61/155] Installing libmount-0:2.40-0. 100% | 172.5 MiB/s | 353.3 KiB | 00m00s [ 62/155] Installing lua-libs-0:5.4.6-5 100% | 137.8 MiB/s | 282.3 KiB | 00m00s [ 63/155] Installing jansson-0:2.13.1-9 100% | 87.6 MiB/s | 89.7 KiB | 00m00s [ 64/155] Installing libtasn1-0:4.19.0- 100% | 173.3 MiB/s | 177.5 KiB | 00m00s [ 65/155] Installing libcom_err-0:1.47. 100% | 66.7 MiB/s | 68.3 KiB | 00m00s [ 66/155] Installing alternatives-0:1.2 100% | 62.5 MiB/s | 64.0 KiB | 00m00s [ 67/155] Installing libunistring-0:1.1 100% | 247.2 MiB/s | 1.7 MiB | 00m00s [ 68/155] Installing libidn2-0:2.3.7-1. 100% | 81.8 MiB/s | 335.0 KiB | 00m00s [ 69/155] Installing libpsl-0:0.21.5-3. 100% | 79.7 MiB/s | 81.6 KiB | 00m00s [ 70/155] Installing util-linux-core-0: 100% | 125.9 MiB/s | 1.4 MiB | 00m00s [ 71/155] Installing tar-2:1.35-3.fc40. 100% | 227.0 MiB/s | 3.0 MiB | 00m00s [ 72/155] Installing libsemanage-0:3.6- 100% | 96.1 MiB/s | 295.3 KiB | 00m00s [ 73/155] Installing shadow-utils-2:4.1 100% | 80.3 MiB/s | 4.2 MiB | 00m00s >>> Running pre-install scriptlet: libutempter-0:1.2.1-13.fc40.x86_64 >>> Stop pre-install scriptlet: libutempter-0:1.2.1-13.fc40.x86_64 [ 74/155] Installing libutempter-0:1.2. 100% | 29.2 MiB/s | 59.7 KiB | 00m00s [ 75/155] Installing zip-0:3.0-40.fc40. 100% | 138.1 MiB/s | 707.1 KiB | 00m00s [ 76/155] Installing gdbm-1:1.23-6.fc40 100% | 113.7 MiB/s | 465.8 KiB | 00m00s [ 77/155] Installing cyrus-sasl-lib-0:2 100% | 229.1 MiB/s | 2.3 MiB | 00m00s [ 78/155] Installing zstd-0:1.5.5-5.fc4 100% | 182.9 MiB/s | 1.6 MiB | 00m00s [ 79/155] Installing libfdisk-0:2.40-0. 100% | 178.0 MiB/s | 364.6 KiB | 00m00s [ 80/155] Installing bzip2-0:1.0.8-18.f 100% | 47.0 MiB/s | 96.2 KiB | 00m00s [ 81/155] Installing libxml2-0:2.12.5-1 100% | 242.8 MiB/s | 1.7 MiB | 00m00s [ 82/155] Installing sqlite-libs-0:3.45 100% | 233.6 MiB/s | 1.4 MiB | 00m00s [ 83/155] Installing ed-0:1.20.1-1.fc41 100% | 72.6 MiB/s | 148.8 KiB | 00m00s [ 84/155] Installing patch-0:2.7.6-24.f 100% | 129.0 MiB/s | 264.3 KiB | 00m00s [ 85/155] Installing elfutils-default-y 100% | 204.3 KiB/s | 2.0 KiB | 00m00s >>> Running post-install scriptlet: elfutils-default-yama-scope-0:0.190-6.fc41.n >>> Stop post-install scriptlet: elfutils-default-yama-scope-0:0.190-6.fc41.noar [ 86/155] Installing cpio-0:2.15-1.fc40 100% | 137.5 MiB/s | 1.1 MiB | 00m00s [ 87/155] Installing diffutils-0:3.10-5 100% | 158.6 MiB/s | 1.6 MiB | 00m00s [ 88/155] Installing libgomp-0:14.0.1-0 100% | 169.1 MiB/s | 519.4 KiB | 00m00s [ 89/155] Installing libpkgconf-0:2.1.0 100% | 73.6 MiB/s | 75.3 KiB | 00m00s [ 90/155] Installing pkgconf-0:2.1.0-1. 100% | 41.5 MiB/s | 84.9 KiB | 00m00s [ 91/155] Installing pkgconf-pkg-config 100% | 1.7 MiB/s | 1.8 KiB | 00m00s [ 92/155] Installing keyutils-libs-0:1. 100% | 54.5 MiB/s | 55.8 KiB | 00m00s [ 93/155] Installing libverto-0:0.3.2-8 100% | 30.5 MiB/s | 31.3 KiB | 00m00s [ 94/155] Installing libffi-0:3.4.4-7.f 100% | 81.0 MiB/s | 83.0 KiB | 00m00s [ 95/155] Installing p11-kit-0:0.25.3-4 100% | 146.3 MiB/s | 2.2 MiB | 00m00s [ 96/155] Installing p11-kit-trust-0:0. 100% | 32.0 MiB/s | 393.1 KiB | 00m00s >>> Running post-install scriptlet: p11-kit-trust-0:0.25.3-4.fc40.x86_64 >>> Stop post-install scriptlet: p11-kit-trust-0:0.25.3-4.fc40.x86_64 [ 97/155] Installing libnghttp2-0:1.59. 100% | 81.7 MiB/s | 167.2 KiB | 00m00s [ 98/155] Installing libtool-ltdl-0:2.4 100% | 65.7 MiB/s | 67.3 KiB | 00m00s [ 99/155] Installing xxhash-libs-0:0.8. 100% | 87.8 MiB/s | 89.9 KiB | 00m00s [100/155] Installing libbrotli-0:1.1.0- 100% | 162.5 MiB/s | 831.8 KiB | 00m00s [101/155] Installing coreutils-common-0 100% | 243.9 MiB/s | 11.5 MiB | 00m00s [102/155] Installing openssl-libs-1:3.2 100% | 299.5 MiB/s | 7.8 MiB | 00m00s [103/155] Installing coreutils-0:9.4-6. 100% | 161.5 MiB/s | 5.8 MiB | 00m00s >>> Running pre-install scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.fc41.n >>> Stop pre-install scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.fc41.noar [104/155] Installing ca-certificates-0: 100% | 2.4 MiB/s | 2.3 MiB | 00m01s >>> Running post-install scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.fc41. >>> Stop post-install scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.fc41.noa [105/155] Installing krb5-libs-0:1.21.2 100% | 163.9 MiB/s | 2.3 MiB | 00m00s [106/155] Installing libtirpc-0:1.3.4-1 100% | 99.9 MiB/s | 204.6 KiB | 00m00s [107/155] Installing gzip-0:1.13-1.fc40 100% | 95.4 MiB/s | 390.6 KiB | 00m00s [108/155] Installing authselect-libs-0: 100% | 90.4 MiB/s | 833.2 KiB | 00m00s [109/155] Installing authselect-0:1.5.0 100% | 38.6 MiB/s | 157.9 KiB | 00m00s [110/155] Installing cracklib-0:2.9.11- 100% | 34.9 MiB/s | 250.3 KiB | 00m00s [111/155] Installing libpwquality-0:1.4 100% | 52.5 MiB/s | 430.1 KiB | 00m00s [112/155] Installing libnsl2-0:2.0.1-1. 100% | 28.8 MiB/s | 59.0 KiB | 00m00s [113/155] Installing pam-0:1.6.0-2.fc41 100% | 75.5 MiB/s | 1.8 MiB | 00m00s [114/155] Installing libssh-0:0.10.6-4. 100% | 124.8 MiB/s | 511.4 KiB | 00m00s [115/155] Installing libarchive-0:3.7.2 100% | 223.8 MiB/s | 916.6 KiB | 00m00s [116/155] Installing rpm-sequoia-0:1.6. 100% | 278.7 MiB/s | 2.2 MiB | 00m00s [117/155] Installing rpm-libs-0:4.19.1. 100% | 231.6 MiB/s | 711.4 KiB | 00m00s [118/155] Installing libevent-0:2.1.12- 100% | 219.6 MiB/s | 899.4 KiB | 00m00s [119/155] Installing openldap-0:2.6.7-1 100% | 156.0 MiB/s | 638.9 KiB | 00m00s [120/155] Installing libcurl-0:8.6.0-7. 100% | 251.9 MiB/s | 773.9 KiB | 00m00s [121/155] Installing elfutils-debuginfo 100% | 32.7 MiB/s | 66.9 KiB | 00m00s [122/155] Installing elfutils-libs-0:0. 100% | 157.2 MiB/s | 644.0 KiB | 00m00s [123/155] Installing binutils-0:2.42.50 100% | 269.3 MiB/s | 26.7 MiB | 00m00s >>> Running post-install scriptlet: binutils-0:2.42.50-4.fc41.x86_64 >>> Stop post-install scriptlet: binutils-0:2.42.50-4.fc41.x86_64 [124/155] Installing binutils-gold-0:2. 100% | 112.8 MiB/s | 2.0 MiB | 00m00s >>> Running post-install scriptlet: binutils-gold-0:2.42.50-4.fc41.x86_64 >>> Stop post-install scriptlet: binutils-gold-0:2.42.50-4.fc41.x86_64 [125/155] Installing elfutils-0:0.190-6 100% | 229.9 MiB/s | 2.5 MiB | 00m00s [126/155] Installing gdb-minimal-0:14.1 100% | 308.8 MiB/s | 12.7 MiB | 00m00s [127/155] Installing debugedit-0:5.0-14 100% | 98.5 MiB/s | 201.7 KiB | 00m00s [128/155] Installing rpm-build-libs-0:4 100% | 97.3 MiB/s | 199.2 KiB | 00m00s [129/155] Installing curl-0:8.6.0-7.fc4 100% | 42.3 MiB/s | 736.9 KiB | 00m00s >>> Running pre-install scriptlet: rpm-0:4.19.1.1-1.fc40.x86_64 >>> Stop pre-install scriptlet: rpm-0:4.19.1.1-1.fc40.x86_64 [130/155] Installing rpm-0:4.19.1.1-1.f 100% | 82.6 MiB/s | 2.4 MiB | 00m00s [131/155] Installing efi-srpm-macros-0: 100% | 40.2 MiB/s | 41.2 KiB | 00m00s [132/155] Installing lua-srpm-macros-0: 100% | 1.9 MiB/s | 1.9 KiB | 00m00s [133/155] Installing zig-srpm-macros-0: 100% | 1.6 MiB/s | 1.7 KiB | 00m00s [134/155] Installing rust-srpm-macros-0 100% | 5.4 MiB/s | 5.5 KiB | 00m00s [135/155] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 732.0 B | 00m00s [136/155] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 768.0 B | 00m00s [137/155] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [138/155] Installing package-notes-srpm 100% | 2.0 MiB/s | 2.0 KiB | 00m00s [139/155] Installing openblas-srpm-macr 100% | 0.0 B/s | 384.0 B | 00m00s [140/155] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.2 KiB | 00m00s [141/155] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [142/155] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [143/155] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 648.0 B | 00m00s [144/155] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [145/155] Installing ansible-srpm-macro 100% | 35.4 MiB/s | 36.2 KiB | 00m00s [146/155] Installing python-srpm-macros 100% | 50.1 MiB/s | 51.3 KiB | 00m00s [147/155] Installing fonts-srpm-macros- 100% | 55.1 MiB/s | 56.5 KiB | 00m00s [148/155] Installing go-srpm-macros-0:3 100% | 60.2 MiB/s | 61.6 KiB | 00m00s [149/155] Installing forge-srpm-macros- 100% | 37.7 MiB/s | 38.6 KiB | 00m00s [150/155] Installing redhat-rpm-config- 100% | 46.7 MiB/s | 191.4 KiB | 00m00s [151/155] Installing rpm-build-0:4.19.1 100% | 44.4 MiB/s | 182.0 KiB | 00m00s [152/155] Installing pyproject-srpm-mac 100% | 1.0 MiB/s | 2.1 KiB | 00m00s [153/155] Installing util-linux-0:2.40- 100% | 88.6 MiB/s | 3.7 MiB | 00m00s >>> Running post-install scriptlet: util-linux-0:2.40-0.9.rc1.fc41.x86_64 >>> Stop post-install scriptlet: util-linux-0:2.40-0.9.rc1.fc41.x86_64 [154/155] Installing which-0:2.21-41.fc 100% | 40.3 MiB/s | 82.4 KiB | 00m00s [155/155] Installing info-0:7.1-2.fc40. 100% | 276.2 KiB/s | 358.2 KiB | 00m01s >>> Running post-transaction scriptlet: filesystem-0:3.18-8.fc40.x86_64 >>> Stop post-transaction scriptlet: filesystem-0:3.18-8.fc40.x86_64 >>> Running post-transaction scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.f >>> Stop post-transaction scriptlet: ca-certificates-0:2023.2.62_v7.0.401-6.fc41 >>> Running post-transaction scriptlet: authselect-libs-0:1.5.0-5.fc41.x86_64 >>> Stop post-transaction scriptlet: authselect-libs-0:1.5.0-5.fc41.x86_64 >>> Running post-transaction scriptlet: rpm-0:4.19.1.1-1.fc40.x86_64 >>> Stop post-transaction scriptlet: rpm-0:4.19.1.1-1.fc40.x86_64 >>> Running trigger-install scriptlet: glibc-common-0:2.39.9000-4.fc41.x86_64 >>> Stop trigger-install scriptlet: glibc-common-0:2.39.9000-4.fc41.x86_64 >>> Running trigger-install scriptlet: info-0:7.1-2.fc40.x86_64 >>> Stop trigger-install scriptlet: info-0:7.1-2.fc40.x86_64 Warning: skipped PGP checks for 30 package(s). Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: alternatives-1.26-3.fc41.x86_64 ansible-srpm-macros-1-14.fc40.noarch audit-libs-4.0-8.fc41.x86_64 authselect-1.5.0-5.fc41.x86_64 authselect-libs-1.5.0-5.fc41.x86_64 basesystem-11-20.fc40.noarch bash-5.2.26-3.fc40.x86_64 binutils-2.42.50-4.fc41.x86_64 binutils-gold-2.42.50-4.fc41.x86_64 bzip2-1.0.8-18.fc40.x86_64 bzip2-libs-1.0.8-18.fc40.x86_64 ca-certificates-2023.2.62_v7.0.401-6.fc41.noarch coreutils-9.4-6.fc40.x86_64 coreutils-common-9.4-6.fc40.x86_64 cpio-2.15-1.fc40.x86_64 cracklib-2.9.11-5.fc40.x86_64 crypto-policies-20240201-2.git9f501f3.fc41.noarch curl-8.6.0-7.fc41.x86_64 cyrus-sasl-lib-2.1.28-19.fc41.x86_64 debugedit-5.0-14.fc40.x86_64 diffutils-3.10-5.fc40.x86_64 dwz-0.15-6.fc41.x86_64 ed-1.20.1-1.fc41.x86_64 efi-srpm-macros-5-11.fc40.noarch elfutils-0.190-6.fc41.x86_64 elfutils-debuginfod-client-0.190-6.fc41.x86_64 elfutils-default-yama-scope-0.190-6.fc41.noarch elfutils-libelf-0.190-6.fc41.x86_64 elfutils-libs-0.190-6.fc41.x86_64 fedora-gpg-keys-41-0.1.noarch fedora-release-41-0.6.noarch fedora-release-common-41-0.6.noarch fedora-release-identity-basic-41-0.6.noarch fedora-repos-41-0.1.noarch fedora-repos-rawhide-41-0.1.noarch file-5.45-5.fc41.x86_64 file-libs-5.45-5.fc41.x86_64 filesystem-3.18-8.fc40.x86_64 findutils-4.9.0-8.fc40.x86_64 fonts-srpm-macros-2.0.5-14.fc40.noarch forge-srpm-macros-0.2.0-3.fc41.noarch fpc-srpm-macros-1.3-12.fc40.noarch gawk-5.3.0-3.fc40.x86_64 gdb-minimal-14.1-9.fc41.x86_64 gdbm-1.23-6.fc40.x86_64 gdbm-libs-1.23-6.fc40.x86_64 ghc-srpm-macros-1.6.1-5.fc40.noarch glibc-2.39.9000-4.fc41.x86_64 glibc-common-2.39.9000-4.fc41.x86_64 glibc-gconv-extra-2.39.9000-4.fc41.x86_64 glibc-minimal-langpack-2.39.9000-4.fc41.x86_64 gmp-6.3.0-1.fc41.x86_64 gnat-srpm-macros-6-5.fc40.noarch go-srpm-macros-3.4.0-2.fc40.noarch gpg-pubkey-a15b79cc-63d04c2c gpg-pubkey-e99d6ad1-64d2612c grep-3.11-7.fc40.x86_64 gzip-1.13-1.fc40.x86_64 info-7.1-2.fc40.x86_64 jansson-2.13.1-9.fc40.x86_64 kernel-srpm-macros-1.0-22.fc40.noarch keyutils-libs-1.6.3-3.fc40.x86_64 krb5-libs-1.21.2-5.fc40.x86_64 libacl-2.3.2-1.fc40.x86_64 libarchive-3.7.2-3.fc40.x86_64 libattr-2.5.2-3.fc40.x86_64 libblkid-2.40-0.9.rc1.fc41.x86_64 libbrotli-1.1.0-3.fc41.x86_64 libcap-2.69-3.fc40.x86_64 libcap-ng-0.8.4-4.fc40.x86_64 libcom_err-1.47.0-5.fc41.x86_64 libcurl-8.6.0-7.fc41.x86_64 libeconf-0.5.2-3.fc40.x86_64 libevent-2.1.12-12.fc40.x86_64 libfdisk-2.40-0.9.rc1.fc41.x86_64 libffi-3.4.4-7.fc40.x86_64 libgcc-14.0.1-0.7.fc41.x86_64 libgomp-14.0.1-0.7.fc41.x86_64 libidn2-2.3.7-1.fc40.x86_64 libmount-2.40-0.9.rc1.fc41.x86_64 libnghttp2-1.59.0-2.fc40.x86_64 libnsl2-2.0.1-1.fc40.x86_64 libpkgconf-2.1.0-1.fc40.x86_64 libpsl-0.21.5-3.fc40.x86_64 libpwquality-1.4.5-9.fc40.x86_64 libselinux-3.6-4.fc40.x86_64 libsemanage-3.6-3.fc40.x86_64 libsepol-3.6-3.fc40.x86_64 libsmartcols-2.40-0.9.rc1.fc41.x86_64 libssh-0.10.6-4.fc40.x86_64 libssh-config-0.10.6-4.fc40.noarch libstdc++-14.0.1-0.7.fc41.x86_64 libtasn1-4.19.0-6.fc40.x86_64 libtirpc-1.3.4-1.rc2.fc40.2.x86_64 libtool-ltdl-2.4.7-10.fc40.x86_64 libunistring-1.1-7.fc41.x86_64 libutempter-1.2.1-13.fc40.x86_64 libuuid-2.40-0.9.rc1.fc41.x86_64 libverto-0.3.2-8.fc40.x86_64 libxcrypt-4.4.36-5.fc40.x86_64 libxml2-2.12.5-1.fc40.x86_64 libzstd-1.5.5-5.fc40.x86_64 lua-libs-5.4.6-5.fc40.x86_64 lua-srpm-macros-1-13.fc40.noarch lz4-libs-1.9.4-6.fc40.x86_64 mpfr-4.2.1-3.fc40.x86_64 ncurses-base-6.4-12.20240127.fc40.noarch ncurses-libs-6.4-12.20240127.fc40.x86_64 ocaml-srpm-macros-9-3.fc40.noarch openblas-srpm-macros-2-16.fc40.noarch openldap-2.6.7-1.fc40.x86_64 openssl-libs-3.2.1-2.fc40.x86_64 p11-kit-0.25.3-4.fc40.x86_64 p11-kit-trust-0.25.3-4.fc40.x86_64 package-notes-srpm-macros-0.5-11.fc40.noarch pam-1.6.0-2.fc41.x86_64 pam-libs-1.6.0-2.fc41.x86_64 patch-2.7.6-24.fc40.x86_64 pcre2-10.42-2.fc40.2.x86_64 pcre2-syntax-10.42-2.fc40.2.noarch perl-srpm-macros-1-53.fc40.noarch pkgconf-2.1.0-1.fc40.x86_64 pkgconf-m4-2.1.0-1.fc40.noarch pkgconf-pkg-config-2.1.0-1.fc40.x86_64 popt-1.19-6.fc40.x86_64 publicsuffix-list-dafsa-20240107-3.fc40.noarch pyproject-srpm-macros-1.12.0-1.fc40.noarch python-srpm-macros-3.12-7.fc40.noarch qt5-srpm-macros-5.15.12-3.fc40.noarch qt6-srpm-macros-6.6.2-1.fc41.noarch readline-8.2-8.fc40.x86_64 redhat-rpm-config-285-1.fc41.noarch rpm-4.19.1.1-1.fc40.x86_64 rpm-build-4.19.1.1-1.fc40.x86_64 rpm-build-libs-4.19.1.1-1.fc40.x86_64 rpm-libs-4.19.1.1-1.fc40.x86_64 rpm-sequoia-1.6.0-2.fc40.x86_64 rust-srpm-macros-26.1-1.fc41.noarch sed-4.9-1.fc40.x86_64 setup-2.14.5-2.fc40.noarch shadow-utils-4.15.0rc2-1.fc41.x86_64 sqlite-libs-3.45.1-2.fc40.x86_64 systemd-libs-255.3-1.fc40.x86_64 tar-1.35-3.fc40.x86_64 unzip-6.0-63.fc40.x86_64 util-linux-2.40-0.9.rc1.fc41.x86_64 util-linux-core-2.40-0.9.rc1.fc41.x86_64 which-2.21-41.fc40.x86_64 xxhash-libs-0.8.2-2.fc40.x86_64 xz-5.4.6-1.fc40.x86_64 xz-libs-5.4.6-1.fc40.x86_64 zig-srpm-macros-1-2.fc40.noarch zip-3.0-40.fc40.x86_64 zlib-ng-compat-2.1.6-2.fc40.x86_64 zstd-1.5.5-5.fc40.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1630540800 Wrote: /builddir/build/SRPMS/golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Finish: rpmbuild -bs cp: preserving permissions for ‘/var/lib/copr-rpmbuild/results/chroot_scan/var/lib/mock/fedora-rawhide-x86_64-1709187646.092446/root/var/log’: No such file or directory INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1709187646.092446/root/var/log/dnf5.log Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-aof2hszb/golang-github-clbanning-mxj/golang-github-clbanning-mxj.spec) Config(child) 0 minutes 40 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1709187646.092446/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1709187646.092446/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1709187646.092446/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.19.1.1-1.fc40.x86_64 rpm-sequoia-1.6.0-2.fc40.x86_64 python3-dnf-4.19.0-1.fc40.noarch yum-4.19.0-1.fc40.noarch dnf5-5.1.13-1.fc41.x86_64 dnf5-plugins-5.1.13-1.fc41.x86_64 Finish: chroot init Start: build phase for golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Start: build setup for golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1630540800 Wrote: /builddir/build/SRPMS/golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Updating and loading repositories: fedora 100% | 640.7 KiB/s | 17.3 KiB | 00m00s Copr repository 100% | 40.5 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 27.9 MiB/s | 4.6 MiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: go-rpm-macros x86_64 3.4.0-2.fc40 fedora 91.2 KiB Installing dependencies: annobin-docs noarch 12.41-1.fc41 copr_base 95.6 KiB annobin-plugin-gcc x86_64 12.41-1.fc41 copr_base 967.3 KiB cpp x86_64 14.0.1-0.7.fc41 fedora 34.8 MiB expat x86_64 2.6.0-1.fc41 fedora 276.9 KiB gc x86_64 8.2.2-6.fc40 fedora 258.7 KiB gcc x86_64 14.0.1-0.7.fc41 fedora 103.2 MiB gcc-plugin-annobin x86_64 14.0.1-0.7.fc41 fedora 57.1 KiB glibc-devel x86_64 2.39.9000-4.fc41 copr_base 37.1 KiB glibc-headers-x86 noarch 2.39.9000-4.fc41 copr_base 2.2 MiB go-filesystem x86_64 3.4.0-2.fc40 fedora 0.0 B golang x86_64 1.22.0-1.fc40 fedora 8.9 MiB golang-bin x86_64 1.22.0-1.fc40 fedora 103.8 MiB golang-src noarch 1.22.0-1.fc40 fedora 71.2 MiB golist x86_64 0.10.4-3.fc40 fedora 3.9 MiB guile30 x86_64 3.0.7-12.fc40 fedora 51.5 MiB kernel-headers x86_64 6.8.0-0.rc6.49.fc41 fedora 6.2 MiB libb2 x86_64 0.98.1-11.fc40 fedora 42.2 KiB libmpc x86_64 1.3.1-5.fc40 fedora 164.7 KiB libxcrypt-devel x86_64 4.4.36-5.fc40 fedora 30.3 KiB make x86_64 1:4.4.1-6.fc40 fedora 1.8 MiB mpdecimal x86_64 2.5.1-9.fc40 fedora 200.9 KiB python-pip-wheel noarch 24.0-1.fc41 copr_base 1.5 MiB python3 x86_64 3.12.2-2.fc41 fedora 31.9 KiB python3-libs x86_64 3.12.2-2.fc41 fedora 41.0 MiB tzdata noarch 2024a-2.fc40 fedora 1.6 MiB Transaction Summary: Installing: 26 packages Total size of inbound packages is 112 MiB. Need to download 0 B. After this operation 434 MiB will be used (install 434 MiB, remove 0 B). [ 1/26] go-rpm-macros-0:3.4.0-2.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/26] go-filesystem-0:3.4.0-2.fc40.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/26] golang-0:1.22.0-1.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/26] golist-0:0.10.4-3.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/26] golang-bin-0:1.22.0-1.fc40.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/26] golang-src-0:1.22.0-1.fc40.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/26] gcc-0:14.0.1-0.7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/26] cpp-0:14.0.1-0.7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/26] libmpc-0:1.3.1-5.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/26] make-1:4.4.1-6.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/26] guile30-0:3.0.7-12.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/26] gc-0:8.2.2-6.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/26] python3-0:3.12.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/26] glibc-devel-0:2.39.9000-4.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [15/26] python3-libs-0:3.12.2-2.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [16/26] libxcrypt-devel-0:4.4.36-5.fc40 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [17/26] glibc-headers-x86-0:2.39.9000-4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [18/26] expat-0:2.6.0-1.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [19/26] libb2-0:0.98.1-11.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [20/26] mpdecimal-0:2.5.1-9.fc40.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [21/26] tzdata-0:2024a-2.fc40.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [22/26] gcc-plugin-annobin-0:14.0.1-0.7 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [23/26] kernel-headers-0:6.8.0-0.rc6.49 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [24/26] python-pip-wheel-0:24.0-1.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [25/26] annobin-plugin-gcc-0:12.41-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [26/26] annobin-docs-0:12.41-1.fc41.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [26/26] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/28] Verify package files 100% | 59.0 B/s | 26.0 B | 00m00s >>> Running pre-transaction scriptlet: golang-0:1.22.0-1.fc40.x86_64 >>> Stop pre-transaction scriptlet: golang-0:1.22.0-1.fc40.x86_64 [ 2/28] Prepare transaction 100% | 220.0 B/s | 26.0 B | 00m00s [ 3/28] Installing libmpc-0:1.3.1-5.fc4 100% | 81.2 MiB/s | 166.2 KiB | 00m00s [ 4/28] Installing go-filesystem-0:3.4. 100% | 0.0 B/s | 392.0 B | 00m00s [ 5/28] Installing cpp-0:14.0.1-0.7.fc4 100% | 297.1 MiB/s | 34.8 MiB | 00m00s [ 6/28] Installing annobin-docs-0:12.41 100% | 94.3 MiB/s | 96.6 KiB | 00m00s [ 7/28] Installing python-pip-wheel-0:2 100% | 254.7 MiB/s | 1.5 MiB | 00m00s [ 8/28] Installing kernel-headers-0:6.8 100% | 110.1 MiB/s | 6.4 MiB | 00m00s [ 9/28] Installing tzdata-0:2024a-2.fc4 100% | 27.5 MiB/s | 1.9 MiB | 00m00s [10/28] Installing mpdecimal-0:2.5.1-9. 100% | 98.6 MiB/s | 202.0 KiB | 00m00s [11/28] Installing libb2-0:0.98.1-11.fc 100% | 42.3 MiB/s | 43.3 KiB | 00m00s [12/28] Installing expat-0:2.6.0-1.fc41 100% | 34.1 MiB/s | 278.9 KiB | 00m00s [13/28] Installing python3-libs-0:3.12. 100% | 201.9 MiB/s | 41.4 MiB | 00m00s [14/28] Installing python3-0:3.12.2-2.f 100% | 16.4 MiB/s | 33.6 KiB | 00m00s [15/28] Installing glibc-headers-x86-0: 100% | 98.0 MiB/s | 2.3 MiB | 00m00s [16/28] Installing libxcrypt-devel-0:4. 100% | 31.8 MiB/s | 32.6 KiB | 00m00s [17/28] Installing glibc-devel-0:2.39.9 100% | 19.9 MiB/s | 40.8 KiB | 00m00s [18/28] Installing gc-0:8.2.2-6.fc40.x8 100% | 63.8 MiB/s | 261.2 KiB | 00m00s [19/28] Installing guile30-0:3.0.7-12.f 100% | 312.6 MiB/s | 51.6 MiB | 00m00s [20/28] Installing make-1:4.4.1-6.fc40. 100% | 180.0 MiB/s | 1.8 MiB | 00m00s [21/28] Installing gcc-0:14.0.1-0.7.fc4 100% | 298.5 MiB/s | 103.3 MiB | 00m00s >>> Running trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch >>> Stop trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch [22/28] Installing golang-src-0:1.22.0- 100% | 157.7 MiB/s | 72.1 MiB | 00m00s [23/28] Installing golang-bin-0:1.22.0- 100% | 325.5 MiB/s | 103.8 MiB | 00m00s >>> Running post-install scriptlet: golang-bin-0:1.22.0-1.fc40.x86_64 >>> Stop post-install scriptlet: golang-bin-0:1.22.0-1.fc40.x86_64 [24/28] Installing golang-0:1.22.0-1.fc 100% | 387.9 MiB/s | 8.9 MiB | 00m00s [25/28] Installing golist-0:0.10.4-3.fc 100% | 302.0 MiB/s | 3.9 MiB | 00m00s [26/28] Installing go-rpm-macros-0:3.4. 100% | 45.9 MiB/s | 94.0 KiB | 00m00s [27/28] Installing gcc-plugin-annobin-0 100% | 2.2 MiB/s | 58.7 KiB | 00m00s >>> Running trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch >>> Stop trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch [28/28] Installing annobin-plugin-gcc-0 100% | 4.0 MiB/s | 968.8 KiB | 00m00s >>> Running trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch >>> Stop trigger-install scriptlet: redhat-rpm-config-0:285-1.fc41.noarch >>> Running trigger-install scriptlet: glibc-common-0:2.39.9000-4.fc41.x86_64 >>> Stop trigger-install scriptlet: glibc-common-0:2.39.9000-4.fc41.x86_64 >>> Running trigger-install scriptlet: info-0:7.1-2.fc40.x86_64 >>> Stop trigger-install scriptlet: info-0:7.1-2.fc40.x86_64 Warning: skipped PGP checks for 5 package(s). Finish: build setup for golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Start: rpmbuild golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1630540800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.McWetT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mxj-2.5.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/mxj-2.5.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mxj-2.5.5 + rm -rf /builddir/build/BUILD/mxj-2.5.5-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/mxj-2.5.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/mxj-2.5.5/vendor + [[ ! -e /builddir/build/BUILD/mxj-2.5.5/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/mxj-2.5.5/_build/bin install: creating directory '/builddir/build/BUILD/mxj-2.5.5/_build' install: creating directory '/builddir/build/BUILD/mxj-2.5.5/_build/bin' + export GOPATH=/builddir/build/BUILD/mxj-2.5.5/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/mxj-2.5.5/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning/mxj ]] ++ dirname /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning/mxj + install -m 0755 -vd /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning install: creating directory '/builddir/build/BUILD/mxj-2.5.5/_build/src' install: creating directory '/builddir/build/BUILD/mxj-2.5.5/_build/src/github.com' install: creating directory '/builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning' + ln -fs /builddir/build/BUILD/mxj-2.5.5 /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning/mxj + cd /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning/mxj + rm -rf deprecate/ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.JkHqIj + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 ++ dirname /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 + cd mxj-2.5.5 + cd /builddir/build/BUILD/mxj-2.5.5/_build/src/github.com/clbanning/mxj + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/clbanning/mxj -b /builddir/build/BUILD/mxj-2.5.5/_build/bin -s /builddir/build/BUILD/mxj-2.5.5/_build -o golang-github-clbanning-mxj-devel.file-list -O /builddir/build/BUILD/mxj-2.5.5 -V 2.5.5-7.fc41 -p /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 -g /usr/share/gocode -r '.*example.*' Installing: github.com/clbanning/mxj + IFS= +++ realpath -e --relative-base=. examples readme.md x2j-wrapper/README +++ sort -u ++ listfiles_include='examples readme.md x2j-wrapper/README' ++ echo 'examples readme.md x2j-wrapper/README' + godocs='examples readme.md x2j-wrapper/README' + [[ -n examples readme.md x2j-wrapper/README ]] + IFS= + read -r f + echo %doc '"examples"' + IFS= + read -r f + echo %doc '"readme.md"' + IFS= + read -r f + echo %doc '"x2j-wrapper/README"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE x2j-wrapper/LICENSE +++ sort -u ++ listfiles_include='LICENSE x2j-wrapper/LICENSE' ++ echo 'LICENSE x2j-wrapper/LICENSE' + golicenses='LICENSE x2j-wrapper/LICENSE' + [[ -n LICENSE x2j-wrapper/LICENSE ]] + IFS= + read -r f + echo %license '"LICENSE"' + IFS= + read -r f + echo %license '"x2j-wrapper/LICENSE"' + IFS= + read -r f + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.cb9axV + umask 022 + cd /builddir/build/BUILD + cd mxj-2.5.5 + LDFLAGS=' -X github.com/clbanning/mxj/version=2.5.5' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + go-rpm-integration check -i github.com/clbanning/mxj -b /builddir/build/BUILD/mxj-2.5.5/_build/bin -s /builddir/build/BUILD/mxj-2.5.5/_build -V 2.5.5-7.fc41 -p /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 -g /usr/share/gocode -r '.*example.*' Testing in: /builddir/build/BUILD/mxj-2.5.5/_build/src PATH: /builddir/build/BUILD/mxj-2.5.5/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/mxj-2.5.5/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/clbanning/mxj/version=2.5.5 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '" testing: github.com/clbanning/mxj github.com/clbanning/mxj ---------------- anyxml_test.go ... []->x: somevaluesomevaluesomevaluesomeothervaluestring3.14159265true a->x: trythis3.14159265true a->x: trythis3.14159265true f->x: 3.14159625 s->x: somevalue3.1415963 []->x: somevalue somevalue somevalue someothervalue string 3.14159265 true a->x: try this 3.14159265 true f->x: 3.14159625 f->x: 3.14159625 s->x: somevalue 3.1415963 ----------------- TestPrefixDefault ... ----------------- TestPrefixNoHyphen ... ----------------- TestPrefixUnderscore ... ----------------- TestPrefixAt ... ----------------- TestMarshalPrefixDefault ... a test a test ----------------- TestMarshalPrefixNoHyphen ... x: a test this is a test this is not ----------------- TestMarshalPrefixUnderscore ... a test a test ---------------- badxml_test.go TestBadXml ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBadXmlSeq ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. TestBadXmlReader ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBadXmlSeqReader ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. --------------- bom_test.go TestBom ... TestBomData ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBomDataSeq ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. TestBomDataReader ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBomDataSeqReader ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. ---------------- bulk_test.go ... XmlReader, xmldata: William H. Gaddis The Recognitions One of the seminal American novels of the 20th century. William H. Gaddis JR Won the National Book Award. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. XmlReader, result : { "book": { "author": "William H. Gaddis", "review": "One of the seminal American novels of the 20th century.", "title": "The Recognitions" } } { "book": { "author": "Austin Tappan Wright", "review": "An example of earlier 20th century American utopian fiction.", "title": "Islandia" } } { "book": { "author": "John Hawkes", "review": "A lyrical novel about the construction of Ft. Peck Dam in Montana.", "title": "The Beetle Leg" } } { "book": { "author": { "first_name": "T.E.", "last_name": "Porter" }, "review": "A magical novella.", "title": "King's Day" } } XmlReader, errors : [xmlReader: 2] xml.Decoder.Token() - XML syntax error on line 5: element closed by [xmlReader: 3] xml.Decoder.Token() - XML syntax error on line 2: unexpected end element JsonReader, jsondata: {"book":{"author":"William H. Gaddis","review":"One of the great seminal American novels of the 20th century.","title":"The Recognitions"}} {"book":{"author":"Austin Tappan Wright","review":"An example of earlier 20th century American utopian fiction.","title":"Islandia"}} {"book":{"author":"John Hawkes","review":"A lyrical novel about the construction of Ft. Peck Dam in Montana.","title":"The Beetle Leg"}} {"book":{"author":{"first_name":"T.E.","last_name":"Porter"},"review":"A magical novella.","title":"King's Day"}} { "here":"we", "put":"in", "an":error } JsonReader, result : William H. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day JsonReader, errors : [jsonReader: 5] invalid character 'e' looking for beginning of value ---------------- bulkraw_test.go ... XmlReaderRaw, xmldata: William H. Gaddis The Recognitions One of the seminal American novels of the 20th century. William H. Gaddis JR Won the National Book Award. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. XmlReaderRaw, result : { "book": { "author": "William H. Gaddis", "review": "One of the seminal American novels of the 20th century.", "title": "The Recognitions" } } { "book": { "author": "Austin Tappan Wright", "review": "An example of earlier 20th century American utopian fiction.", "title": "Islandia" } } { "book": { "author": "John Hawkes", "review": "A lyrical novel about the construction of Ft. Peck Dam in Montana.", "title": "The Beetle Leg" } } { "book": { "author": { "first_name": "T.E.", "last_name": "Porter" }, "review": "A magical novella.", "title": "King's Day" } } XmlReaderRaw, errors : [xmlReader: 2] xml.Decoder.Token() - XML syntax error on line 5: element closed by William H. Gaddis JR Won the National Book Award. [xmlReader: 3] xml.Decoder.Token() - XML syntax error on line 2: unexpected end element JsonReaderRaw, jsondata: {"book":{"author":"William H. Gaddis","review":"One of the great seminal American novels of the 20th century.","title":"The Recognitions"}} {"book":{"author":"Austin Tappan Wright","review":"An example of earlier 20th century American utopian fiction.","title":"Islandia"}} {"book":{"author":"John Hawkes","review":"A lyrical novel about the construction of Ft. Peck Dam in Montana.","title":"The Beetle Leg"}} {"book":{"author":{"first_name":"T.E.","last_name":"Porter"},"review":"A magical novella.","title":"King's Day"}} { "here":"we", "put":"in", "an":error } JsonReaderRaw, result : William H. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day JsonReaderRaw, errors : [jsonReader: 5] invalid character 'e' looking for beginning of value {"here":"we","put":"in","an":error} cast_test.go ---------- ------------ TestCastDefault ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":"T", "f":"f", "false":"FALSE", "true":"true"}, "float":"3.14159625", "int":"2019", "string":"string"}} ------------ TestCastTrue ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":false, "true":true}, "float":3.14159625, "int":2019, "string":"string"}} ------------ TestSetCheckTagToSkipFunc ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":"FALSE", "true":true}, "float":3.14159625, "int":"2019", "string":"string"}} ------------ TestCastValuesToFloat(false) ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":"FALSE", "true":true}, "float":"3.14159625", "int":"2019", "string":"string"}} ------------ TestCastValuesToBool(false) ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":"T", "f":"f", "false":"FALSE", "true":"true"}, "float":3.14159625, "int":"2019", "string":"string"}} ================== TestEscapeChars s: "'<>& ss: "'<>& ================== TestXMLEscapeChars s: "'<>& m: "'<>& ================== TestXMLEscapeChars2 "'<>& map[doc:map[simple:map[#text:"'<>& _attr1:an attribute]]] mv: "'<>& ================== TestXMLSeqEscapeChars data: >0-2y m: map[doc:map[shortDescription:map[#seq:0 #text:>0-2y]]] m: >0-2y ================== TestXMLSeqEscapeChars2 data: >0-2y <10-15 m: map[doc:map[shortDescription:[map[#attr:map[test:map[#seq:0 #text:&something here]] #seq:0 #text:>0-2y] map[#attr:map[quote:map[#seq:1 #text:"] test:map[#seq:0 #text:something there]] #seq:1 #text:<10-15]]]] m: >0-2y <10-15 ------------ exists_test.go ---------------- files_test.go ... NewMapsFromJsonFile() map[a:test file:for files_test.go:case this:is] map[JSON:values true:true two:2 with:just] caught error: stat nil: no such file or directory caught error: error: invalid character 'J' looking for beginning of value - reading: {"with":"some","bad":JSON,"in":"it"} NewMapsFromJsonFileRaw() {map[a:test file:for files_test.go:case this:is] [123 34 116 104 105 115 34 58 34 105 115 34 44 34 97 34 58 34 116 101 115 116 34 44 34 102 105 108 101 34 58 34 102 111 114 34 44 34 102 105 108 101 115 95 116 101 115 116 46 103 111 34 58 34 99 97 115 101 34 125]} {map[JSON:values true:true two:2 with:just] [123 34 119 105 116 104 34 58 34 106 117 115 116 34 44 34 116 119 111 34 58 50 44 34 74 83 79 78 34 58 34 118 97 108 117 101 115 34 44 34 116 114 117 101 34 58 116 114 117 101 125]} caught error: stat nil: no such file or directory caught error: error: invalid character 'J' looking for beginning of value - reading: {"with":"some","bad":JSON,"in":"it"} NewMapsFromXmlFile() map[doc:map[data:for files.go some:test]] map[msg:map[another:doc for:test case just:some]] caught error: stat nil: no such file or directory caught error: error: xml.Decoder.Token() - XML syntax error on line 4: element closed by - reading: some doc NewMapsFromXmlFileRaw() {map[doc:map[data:for files.go some:test]] [60 100 111 99 62 10 9 60 115 111 109 101 62 116 101 115 116 60 47 115 111 109 101 62 10 9 60 100 97 116 97 62 102 111 114 32 102 105 108 101 115 46 103 111 60 47 100 97 116 97 62 10 60 47 100 111 99 62]} {map[msg:map[another:doc for:test case just:some]] [10 60 109 115 103 62 10 9 60 106 117 115 116 62 115 111 109 101 60 47 106 117 115 116 62 10 9 60 97 110 111 116 104 101 114 62 100 111 99 60 47 97 110 111 116 104 101 114 62 10 9 60 102 111 114 62 116 101 115 116 32 99 97 115 101 60 47 102 111 114 62 10 60 47 109 115 103 62]} caught error: stat nil: no such file or directory caught error: error: xml.Decoder.Token() - XML syntax error on line 4: element closed by - reading: some doc TestMaps() mvs: [map[a:test this:is] map[a:test this:is]] JsonString(): {"a":"test","this":"is"}{"a":"test","this":"is"} JsonStringIndent(): { "a": "test", "this": "is" } { "a": "test", "this": "is" } XmlString(): testistestis XmlStringIndent(): test is test is map[a:test file:for files_test.go:case this:is] map[JSON:values true:true two:2 with:just] files_test_dup.json written files_test_indent.json written map[doc:map[data:for files.go some:test]] map[msg:map[another:doc for:test case just:some]] files_test_dup.xml written files_test_indent.xml written ---------------- gob_test.go ... m: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] m: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] mv: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] m : map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] ================== TestXmlCheckIsValid map[:empty $invalid:hex$ entities:<>& nil:] map[$invalid:hex$ entities:<>& nil:] map[entities:<>& nil:] map[nil:] map[doc:map[elem:map[#seq:0 #text:element]]] ---------------- j2x_test .go ... j2x, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } j2x, m : map[key1:string key2:34 key3:true key4:unsafe: <>& key5:] j2x, xml : string34trueunsafe: <>& ---------------- json_test.go ... NewMapJson, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } NewMapJson, m : mxj.Map{"key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":interface {}(nil)} NewMapJson, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } NewMapJson, m : mxj.Map{"key1":"string", "key2":"34", "key3":true, "key4":"unsafe: <>&", "key5":interface {}(nil)} NewMapJsonError, jdata : { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null NewMapJsonError, merror: unexpected EOF NewMapJsonError, newData : { "this":"is", "in":error } NewMapJsonError, merror : invalid character 'e' looking for beginning of value NewMapJsonReader, jb: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&"} NewMapJsonReader, m : mxj.Map{"key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&"} NewMapJsonReader, jb: {"key":"value in new JSON string"} NewMapJsonReader, m : mxj.Map{"key":"value in new JSON string"} NewMapJsonReader, jb: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&"} NewMapJsonReader, m : mxj.Map{"key1":"string", "key2":"34", "key3":true, "key4":"unsafe: <>&"} NewMapJsonReader, jb: {"key":"value in new JSON string"} NewMapJsonReader, m : mxj.Map{"key":"value in new JSON string"} Json, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } Json, j : {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&","key5":null} Json, j safe: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: \u003c\u003e\u0026","key5":null} JsonWriter, raw: {"and":"a","bool":true,"float":3.14159,"this":"is a"} JsonWriter, b : {"and":"a","bool":true,"float":3.14159,"this":"is a"} -------------- keystolower_test.go TestToLower ... ----------- TestSetSubkeyFieldSeparator ---------------- keyvalues_test.go ... PathsForKey, doc1 ... PathsForKey, doc1#author ... ss: [doc.books.book.author] PathsForKey, doc1#books ... ss: [doc.books] PathsForKey, doc2 ... PathForKey, doc2#book ... ss: [doc.book doc.books.book] PathForKeyShortest, doc2#book ... s : doc.book ValuesForKey ... ValuesForKey, doc1#author ... ss.v: William T. Gaddis ... ss.v: Austin Tappan Wright ... ss.v: John Hawkes ... ss.v: map[first_name:T.E. last_name:Porter] ValuesForKey, doc1#book ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForKey, doc1#book,-seq:3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForKey, doc1#book, author:William T. Gaddis ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ValuesForKey, doc1#author, -seq:1 ValuesForPath ... ValuesForPath, doc.books.book.author ... ss.v: William T. Gaddis ... ss.v: Austin Tappan Wright ... ss.v: John Hawkes ... ss.v: map[first_name:T.E. last_name:Porter] ValuesForPath, doc.books.book ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForPath, doc.books.book -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForPath, doc.books.* -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForPath, doc.*.* -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForNotKey ... ValuesForPath, doc.books.book !author:William T. Gaddis ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForPath, doc.books.book !author:* ValuesForPath, doc.books.book !unknown:* ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ---------------- indexedarray_test.go ... j_data: { "stuff":[ { "data":[ { "F":1 }, { "F":2 }, { "F":3 } ] }, { "data":[ 4, 5, 6 ] } ] } m: map[stuff:[map[data:[map[F:1] map[F:2] map[F:3]]] map[data:[4 5 6]]]] stuff[0]: [map[data:[map[F:1] map[F:2] map[F:3]]]] stuff.data: [map[F:1] map[F:2] map[F:3] 4 5 6] stuff[0].data: [map[F:1] map[F:2] map[F:3]] stuff.data[0]: [map[F:1] 4] stuff.*[2]: [map[F:3] 6] stuff.data.F: [1 2 3] *.*.F: [1 2 3] stuff.data[0].F: [1] stuff.data[1].F: [2] stuff[0].data[2]: [map[F:3]] stuff[1].data[1]: [5] stuff[1].data[1].F [] stuff[1].data.F: [] x_data: 1 2 3 4 5 6 m: map[doc:map[stuff:[map[data:[map[-seq:1.1 F:1] map[-seq:1.2 F:2] map[-seq:1.3 F:3]]] map[data:[map[-seq:2.1 F:4] map[-seq:2.2 F:5] map[-seq:2.3 F:6]]]]]] doc.stuff[0]: [map[data:[map[-seq:1.1 F:1] map[-seq:1.2 F:2] map[-seq:1.3 F:3]]]] doc.stuff.data[0]: [map[-seq:1.1 F:1] map[-seq:2.1 F:4]] doc.stuff.data[0] -seq:2.1: [map[-seq:2.1 F:4]] doc.stuff.data[0].F: [1 4] doc.stuff[0].data[2]: [map[-seq:1.3 F:3]] doc.stuff[1].data[1].F: [5] ak_data: { "section1":{"data" : [{"F1" : "F1 data","F2" : "F2 data"},{"F1" : "demo 123","F2" : "abc xyz"}]}} m: map[section1:map[data:[map[F1:F1 data F2:F2 data] map[F1:demo 123 F2:abc xyz]]]] section1.data[0].F1: [F1 data] ---------------- leafnode_test.go ... json1-LeafNodes: mxj.LeafNode{Path:"friends[0].skills[0]", Value:44} mxj.LeafNode{Path:"friends[0].skills[1]", Value:12} json1-LeafPaths: "friends[0].skills[0]" "friends[0].skills[1]" json2-LeafNodes: mxj.LeafNode{Path:"friends.skills[0]", Value:44} mxj.LeafNode{Path:"friends.skills[1]", Value:12} json1-LeafValues: 44 12 json3-LeafNodes: mxj.LeafNode{Path:"a", Value:"list"} mxj.LeafNode{Path:"of[0]", Value:"data"} mxj.LeafNode{Path:"of[1]", Value:"of"} mxj.LeafNode{Path:"of[2]", Value:3} mxj.LeafNode{Path:"of[3]", Value:"types"} mxj.LeafNode{Path:"of[4]", Value:true} json3-LeafValues: "list" "data" "of" 3 "types" true json3-LeafPaths: "of[0]" "of[1]" "of[2]" "of[3]" "of[4]" "a" xml2data2-LeafValues: mxj.LeafNode{Path:"doc.item[0].-num", Value:"2"} mxj.LeafNode{Path:"doc.item[0].-color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0].#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[1].arm[0].-side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[0].-length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[1].-side", Value:"right"} mxj.LeafNode{Path:"doc.item[1].arm[1].-length", Value:"3.6"} mxj.LeafNode{Path:"doc.item[1].-num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].-color", Value:"green"} xml2data2-LeafValues(NoAttributes): mxj.LeafNode{Path:"doc.item[0]", Value:"Item 2 is blue"} no-hyphen-xml2data2-LeafValues: mxj.LeafNode{Path:"doc.item[0].num", Value:"2"} mxj.LeafNode{Path:"doc.item[0].color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0].#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[1].num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].color", Value:"green"} mxj.LeafNode{Path:"doc.item[1].arm[0].side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[0].length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[1].side", Value:"right"} mxj.LeafNode{Path:"doc.item[1].arm[1].length", Value:"3.6"} no-hyphen-xml2data2-LeafValues(NoAttributes): mxj.LeafNode{Path:"doc.item[0].num", Value:"2"} mxj.LeafNode{Path:"doc.item[0].color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0]", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[1].num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].color", Value:"green"} mxj.LeafNode{Path:"doc.item[1].arm[0].side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[0].length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[1].side", Value:"right"} mxj.LeafNode{Path:"doc.item[1].arm[1].length", Value:"3.6"} DotNotation-LeafValues: mxj.LeafNode{Path:"doc.item.0.-num", Value:"2"} mxj.LeafNode{Path:"doc.item.0.-color", Value:"blue"} mxj.LeafNode{Path:"doc.item.0.#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item.1.-num", Value:"3"} mxj.LeafNode{Path:"doc.item.1.-color", Value:"green"} mxj.LeafNode{Path:"doc.item.1.arm.0.-side", Value:"left"} mxj.LeafNode{Path:"doc.item.1.arm.0.-length", Value:"3.5"} mxj.LeafNode{Path:"doc.item.1.arm.1.-side", Value:"right"} mxj.LeafNode{Path:"doc.item.1.arm.1.-length", Value:"3.6"} ------------------ misc_test.go ... ---------------- mxj_test.go ... TestMap, m: mxj.Map{"key":"value", "newkey":map[string]interface {}{"bool":true, "float":3.14159, "listkey":[]interface {}{3.1415962535, false, "for all good men"}, "string":"Now is the time"}} TestMap, StringIndent - key : [string] value newkey : bool : [bool] true float : [float64] 3.14159 listkey : [[]interface{}] [float64] 3.1415962535 [bool] false [string] for all good men string : [string] Now is the time TestMap, StringIndent NoTypeInfo - key : value newkey : bool : true float : 3.14159 listkey : 3.1415962535 false for all good men string : Now is the time TestMap, m_fromXML: mxj.Map{"doc":map[string]interface {}{"tag":map[string]interface {}{"sub_tag1":"Hello", "sub_tag2":"World"}}} TestMap, StringIndent - doc : tag : sub_tag1 : [string] Hello sub_tag2 : [string] World TestMap, StringIndent NoTypeInfo - doc : tag : sub_tag1 : Hello sub_tag2 : World TestMap, m.Copy() - map[doc:map[tag:map[sub_tag1:Hello sub_tag2:World]]] ---------------- namespace_test.go ... ---------------- TestBeautifyXml ... 123John Brown 123 John Brown ------------ TestNan ... foo.bar: NAN foo.bar: INF foo.bar: -INF foo.bar: NaN ---------------- newmap_test.go ... j: { "A":"this", "B":"is", "C":"a", "D":"test" } m: mxj.Map{"A":"this", "B":"is", "C":"a", "D":"test"} eval - m.NewMap("A:AA", "B:BB", "C:cc", "D:help") n.Json(): {"AA":"this","BB":"is","cc":"a","help":"test"} n.Xml(): thisisatest n.XmlIndent(): this is a test eval - m.NewMap("A:AA.A", "B:AA.B", "C:AA.B.cc", "D:hello.help") n.Json(): {"AA":{"A":"this","B":["is",{"cc":"a"}]},"hello":{"help":"test"}} n.Xml(): thisisatest n.XmlIndent(): this is a test eval - m.NewMap keypairs: [A:xml.AA B:xml.AA.hello.again C:xml.AA D:xml.AA.hello.help] n.Json(): {"xml":{"AA":["this",{"hello":{"again":"is","help":"test"}},"a"]}} n.Xml(): thisistesta n.XmlIndent(): this is test a original value: no default:text default:word new value: no default:text default:word original value: yes default:text default:word new value: yes default:text default:word ------------ rename_test.go ---------------- seqnum_test.go ... m1: mxj.Map{"Obj":map[string]interface {}{"-c":"la", "-h":"da", "-x":"dee", "IntObj":[]interface {}{map[string]interface {}{"-id":3, "_seq":0}, map[string]interface {}{"-id":2, "_seq":2}}, "IntObj1":map[string]interface {}{"-id":1, "_seq":1}}} { "Obj": { "-c": "la", "-h": "da", "-x": "dee", "IntObj": [ { "-id": 3, "_seq": 0 }, { "-id": 2, "_seq": 2 } ], "IntObj1": { "-id": 1, "_seq": 1 } } } m2: mxj.Map{"Obj":map[string]interface {}{"-c":"la", "-h":"da", "-x":"dee", "IntObj":[]interface {}{map[string]interface {}{"-id":3, "_seq":0}, map[string]interface {}{"-id":2, "_seq":2}}, "NewObj":map[string]interface {}{"BoolObj":map[string]interface {}{"#text":true, "_seq":2}, "StringObj":map[string]interface {}{"#text":"hello", "_seq":1}, "_seq":1, "id":map[string]interface {}{"#text":1, "_seq":0}}}} { "Obj": { "-c": "la", "-h": "da", "-x": "dee", "IntObj": [ { "-id": 3, "_seq": 0 }, { "-id": 2, "_seq": 2 } ], "NewObj": { "BoolObj": { "#text": true, "_seq": 2 }, "StringObj": { "#text": "hello", "_seq": 1 }, "_seq": 1, "id": { "#text": 1, "_seq": 0 } } } } ----------- TestSnakeCase ----------------- TestStrictModeXml ... m: map[document:map[goes_by: lang:E name:Bill & Hallett salute:Duc & 123xx]] ----------------- TestStrictModeXmlSeq ... m: map[document:map[goes_by:map[#seq:2 #text:] lang:map[#seq:3 #text:E] name:map[#seq:0 #text:Bill & Hallett] salute:map[#seq:1 #text:Duc & 123xx]]] ----------------- TestStrictFail ... OK ---------------- struct_test.go ... Struct, m: mxj.Map{"bool":true, "float":3.14159, "int":4, "private":"Somewhere over the rainbow", "str":"now's the time"} Struct, s: mxj.str{IntVal:4, StrVal:"now's the time", FloatVal:3.14159, BoolVal:true, private:""} StructError, mverr: mv.Struct() error: argument is not type Ptr ----------------- structvalue_test.go ... ---------------- updatevalues_test.go ... m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] v: William T. Gaddis v: Austin Tappan Wright v: John Hawkes v: map[first_name:T.E. last_name:Porter] m.UpdateValuesForPath("author:NoName", "doc.books.book.author") 4 updates v: NoName v: NoName v: NoName v: NoName m.UpdateValuesForPath("author:William Gadddis", "doc.books.book.author", "title:The Recognitions") 4 updates v: William Gadddis v: Austin Tappen Wright v: John Hawkes v: T. E. Porter m.UpdateValuesForPath("author:William T. Gaddis", "doc.books.book.*", "title:The Recognitions") 1 updates v: William T. Gaddis v: Austin Tappen Wright v: John Hawkes v: T. E. Porter m.UpdateValuesForPath("title:The Cannibal", "doc.books.book.title", "author:John Hawkes") 2 updates v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] v: map[-seq:2 author:Austin Tappen Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] v: map[-seq:3 author:John Hawkes review:A novel on his experiences in WWII. title:The Cannibal] v: map[-seq:4 author:T. E. Porter review:A magical novella. title:King's Day] m.UpdateValuesForPath("books:", "doc.books") 1 updates m: map[doc:map[books:]] m.UpdateValuesForPath(mm, "*") 1 updates m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] newDoc: simple element m: map[tag:map[#text:simple element -color:green -shape:square]] m.UpdateValuesForPath("#text:maybe not so simple element", "tag") n: 1 m: map[tag:map[#text:maybe not so simple element -color:green -shape:square]] m.UpdateValuesForPath("#text:simple element again", "*") n: 1 m: map[tag:map[#text:simple element again -color:green -shape:square]] biblio : author : [[]interface{}] books : book : [[]interface{}] date : [string] 1955 review : [string] A novel that changed the face of American literature. title : [string] The Recognitions date : [string] 1975 review : [string] Winner of National Book Award for Fiction. title : [string] JR name : [string] William Gaddis books : book : [[]interface{}] date : [string] 1949 review : [string] A novel on his experiences in WWII. title : [string] The Cannibal date : [string] 1951 review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg date : [string] 1970 review : [string] Where everyone wants to vacation. title : [string] The Blood Oranges name : [string] John Hawkes m.UpdateValuesForPath("review:National Book Award winner.", "*.*.*.*", "title:JR") 1 updates v: map[books:map[book:[map[date:1955 review:A novel that changed the face of American literature. title:The Recognitions] map[date:1975 review:National Book Award winner. title:JR]]] name:William Gaddis] m.UpdateValuesForPath(newVal, path, oldVal) 5 updates biblio : author : [[]interface{}] books : book : [[]interface{}] date : [float64] 1955 review : [string] A novel that changed the face of American literature. title : [string] The Recognitions date : [float64] 1975 review : [string] National Book Award winner. title : [string] JR name : [string] William Gaddis books : book : [[]interface{}] date : [float64] 1949 review : [string] A novel on his experiences in WWII. title : [string] The Cannibal date : [float64] 1951 review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg date : [float64] 1970 review : [string] Where everyone wants to vacation. title : [string] The Blood Oranges name : [string] John Hawkes ---------------- xml2_test.go ... NewMapXml4, x: William T. Gaddis The Recognitions One of the great seminal American novels of the 20th century. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. NewMapXml4, m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] NewMapXml4, s: doc : books : book : [[]interface{}] -seq : [string] 1 author : [string] William T. Gaddis review : [string] One of the great seminal American novels of the 20th century. title : [string] The Recognitions -seq : [string] 2 author : [string] Austin Tappan Wright review : [string] An example of earlier 20th century American utopian fiction. title : [string] Islandia -seq : [string] 3 author : [string] John Hawkes review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg -seq : [string] 4 author : first_name : [string] T.E. last_name : [string] Porter review : [string] A magical novella. title : [string] King's Day NewMapXml4, b: William T. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day NewMapXml5, raw: help me! Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day NewMapXml5, m: map[msg:map[-mpriority:1 -mtype:alert song:map[-author:Mayer Hawthorne -title:A Long Time chorus:map[line:[map[#text:It's going to take a long time -no:1] map[#text:It's going to take it, but we'll make it one day -no:2] map[#text:It's going to take a long time -no:3] map[#text:It's going to take it, but we'll make it one day -no:4]]] verses:map[verse:[map[-name:verse 1 -no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2] map[#text:One component at a time -no:3] map[#text:There's got to be a better way -no:4] map[#text:Oh, people came from miles around -no:5] map[#text:Searching for a steady job -no:6] map[#text:Welcome to the Motor Town -no:7] map[#text:Booming like an atom bomb -no:8]]] map[-name:verse 2 -no:2 line:[map[#text:Oh, Henry was the end of the story -no:1] map[#text:Then everything went wrong -no:2] map[#text:And we'll return it to its former glory -no:3] map[#text:But it just takes so long -no:4]]]]]] text:help me!]] NewMapXml5, s: msg : -mpriority : [string] 1 -mtype : [string] alert song : -author : [string] Mayer Hawthorne -title : [string] A Long Time chorus : line : [[]interface{}] #text : [string] It's going to take a long time -no : [string] 1 #text : [string] It's going to take it, but we'll make it one day -no : [string] 2 #text : [string] It's going to take a long time -no : [string] 3 #text : [string] It's going to take it, but we'll make it one day -no : [string] 4 verses : verse : [[]interface{}] -name : [string] verse 1 -no : [string] 1 line : [[]interface{}] #text : [string] Henry was a renegade -no : [string] 1 #text : [string] Didn't like to play it safe -no : [string] 2 #text : [string] One component at a time -no : [string] 3 #text : [string] There's got to be a better way -no : [string] 4 #text : [string] Oh, people came from miles around -no : [string] 5 #text : [string] Searching for a steady job -no : [string] 6 #text : [string] Welcome to the Motor Town -no : [string] 7 #text : [string] Booming like an atom bomb -no : [string] 8 -name : [string] verse 2 -no : [string] 2 line : [[]interface{}] #text : [string] Oh, Henry was the end of the story -no : [string] 1 #text : [string] Then everything went wrong -no : [string] 2 #text : [string] And we'll return it to its former glory -no : [string] 3 #text : [string] But it just takes so long -no : [string] 4 text : [string] help me! NewMapXml5, b: It's going to take a long timeIt's going to take it, but we'll make it one dayIt's going to take a long timeIt's going to take it, but we'll make it one dayHenry was a renegadeDidn't like to play it safeOne component at a timeThere's got to be a better wayOh, people came from miles aroundSearching for a steady jobWelcome to the Motor TownBooming like an atom bombOh, Henry was the end of the storyThen everything went wrongAnd we'll return it to its former gloryBut it just takes so longhelp me! NewMapXml5, b: It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long help me! NewMapXml6, raw: Code Review - My issueshttp://codereview.appspot.com/rietveld<>rietveld: an attempt at pubsubhubbub 2009-10-04T01:35:58+00:00email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19a An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a &lt;link rel=&quot;hub&quot; href=&quot;hub-server&quot;&gt; tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can&#39;t quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed&#39;s actual URL in the link rel=&quot;self&quot;, but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). rietveld: correct tab handling 2009-10-03T23:02:17+00:00email-address-removedurn:md5:0a2a4f19bb815101f0ba2904aed7c35a This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn&#39;t know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. NewMapXml6, m: map[feed:map[-lang:en-us -updated:2009-10-04T01:35:58+00:00 -xmlns:http://www.w3.org/2005/Atom author:map[name:rietveld<>] entry:[map[author:map[name:email-address-removed] id:urn:md5:134d9179c41f806be79b3a5f7877d19a link:map[-href:http://codereview.appspot.com/126085 -rel:alternate] summary:map[#text:An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). -type:html] title:rietveld: an attempt at pubsubhubbub updated:2009-10-04T01:35:58+00:00] map[author:map[name:email-address-removed] id:urn:md5:0a2a4f19bb815101f0ba2904aed7c35a link:map[-href:http://codereview.appspot.com/124106 -rel:alternate] summary:map[#text:This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. -type:html] title:rietveld: correct tab handling updated:2009-10-03T23:02:17+00:00]] id:http://codereview.appspot.com/ link:[map[-href:http://codereview.appspot.com/ -rel:alternate] map[-href:http://codereview.appspot.com/rss/mine/rsc -rel:self]] title:Code Review - My issues]] NewMapXml6, s: feed : -lang : [string] en-us -updated : [string] 2009-10-04T01:35:58+00:00 -xmlns : [string] http://www.w3.org/2005/Atom author : name : [string] rietveld<> entry : [[]interface{}] author : name : [string] email-address-removed id : [string] urn:md5:134d9179c41f806be79b3a5f7877d19a link : -href : [string] http://codereview.appspot.com/126085 -rel : [string] alternate summary : #text : [string] An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). -type : [string] html title : [string] rietveld: an attempt at pubsubhubbub updated : [string] 2009-10-04T01:35:58+00:00 author : name : [string] email-address-removed id : [string] urn:md5:0a2a4f19bb815101f0ba2904aed7c35a link : -href : [string] http://codereview.appspot.com/124106 -rel : [string] alternate summary : #text : [string] This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. -type : [string] html title : [string] rietveld: correct tab handling updated : [string] 2009-10-03T23:02:17+00:00 id : [string] http://codereview.appspot.com/ link : [[]interface{}] -href : [string] http://codereview.appspot.com/ -rel : [string] alternate -href : [string] http://codereview.appspot.com/rss/mine/rsc -rel : [string] self title : [string] Code Review - My issues NewMapXml6, b: rietveld<>email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19aAn attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc).rietveld: an attempt at pubsubhubbub2009-10-04T01:35:58+00:00email-address-removedurn:md5:0a2a4f19bb815101f0ba2904aed7c35aThis fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py.rietveld: correct tab handling2009-10-03T23:02:17+00:00http://codereview.appspot.com/Code Review - My issues NewMapXml6, b: rietveld<> email-address-removed urn:md5:134d9179c41f806be79b3a5f7877d19a An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). rietveld: an attempt at pubsubhubbub 2009-10-04T01:35:58+00:00 email-address-removed urn:md5:0a2a4f19bb815101f0ba2904aed7c35a This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. rietveld: correct tab handling 2009-10-03T23:02:17+00:00 http://codereview.appspot.com/ Code Review - My issues ------------ xml3_test.go ========== TestOnlyAttributes
========== TestOnlyAttributesSeq
========== TestDecodeSimpleValuesAsMap xml: 30102 Mini Drone Inteligente - Branco 149.90 m : map[item:map[id:map[#text:30102] price:map[#text:149.90 -unit:BRL] title:map[#text:Mini Drone Inteligente - Branco]]] ========== (default) m : map[item:map[id:30102 price:map[#text:149.90 -unit:BRL] title:Mini Drone Inteligente - Branco]] ---------------- xml_test.go ... ==================== TestNewMapXmlReader ... NewMapXmlReader, raw: is a test NewMapXmlReader, m : map[root:map[this:is a test]] NewMapXmlReader, raw: something more12 NewMapXmlReader, m : map[root2:map[list:map[item:[1 2]] newtag:something more]] Xml_1, mv: map[boolean:true float:3.14159625 null: tag1:some data tag2:more data] Xml_1, x : true3.14159625some datamore data Xml_2, mv: map[array:[string true 36.4]] Xml_2, x : stringtrue36.4 Xml_3, mv: map[array:[[string true 36.4] string2]] Xml_3, x : stringtrue36.4string2 Xml_4, mv: map[array:map[innerkey:[[string true 36.4] string2]]] Xml_4, x : stringtrue36.4string2 Xml_5, mv: map[array:[map[innerkey:[[string true 36.4] string2]] map[some:more]]] Xml_5, x : stringtrue36.4string2more Xml_strings, mv: map[sometag:some data strings:[string1 string2]] Xml_strings, x : some datastring1string2 XmlWriter, b : true3.14159625some datamore data ---------------- xmlseq_test.go ... NewMapXmlSeq, x: William T. Gaddis Gaddis is one of the most influential but little know authors in America. The Recognitions One of the great seminal American novels of the 20th century. Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. NewMapXmlSeq, s: doc : books : #seq : [int] 0 book : [[]interface{}] #attr : seq : #seq : [int] 0 #text : [string] 1 #comment : #seq : [int] 3 #text : [string] here's the rest of the review #seq : [int] 0 author : #seq : [int] 0 #text : [string] William T. Gaddis review : [[]interface{}] #seq : [int] 1 #text : [string] Gaddis is one of the most influential but little know authors in America. #seq : [int] 4 #text : [string] One of the great seminal American novels of the 20th century. #seq : [int] 5 #text : [string] Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. title : #seq : [int] 2 #text : [string] The Recognitions #attr : seq : #seq : [int] 0 #text : [string] 2 #seq : [int] 1 author : #seq : [int] 0 #text : [string] Austin Tappan Wright review : #seq : [int] 2 #text : [string] An example of earlier 20th century American utopian fiction. title : #seq : [int] 1 #text : [string] Islandia #directive : #seq : [int] 2 #text : [string] throw in a directive here #seq : [int] 2 author : #seq : [int] 0 #text : [string] John Hawkes review : #seq : [int] 3 #text : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : #seq : [int] 1 #text : [string] The Beetle Leg #seq : [int] 3 author : #procinst : #inst : [string] first_name last_name #seq : [int] 0 #target : [string] cat #seq : [int] 0 first_name : #seq : [int] 1 #text : [string] T.E. last_name : #seq : [int] 2 #text : [string] Porter review : #seq : [int] 2 #text : [string] A magical novella. title : #seq : [int] 1 #text : [string] King's Day NewMapXmlSeq, msv.XmlIndent(): William T. Gaddis Gaddis is one of the most influential but little know authors in America. The Recognitions One of the great seminal American novels of the 20th century. Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. ------------ TestXmlSeqDecodeError ... err ok: element book not properly terminated, got books at #461 ----------- TestXMPPStreamTag ... map[stream:map[-from:example.com -stream:http://etherx.jabber.org/streams -version:1.0 -xmlns:jabber:client]] map[features:map[bind:map[-xmlns:urn:ietf:params:xml:ns:xmpp-bind] sm:map[-xmlns:urn:xmpp:sm:3]]] map[stream:map[]] ----------- TestXMPPStreamTagSeq ... map[stream:stream:map[#attr:map[from:map[#seq:0 #text:example.com] version:map[#seq:3 #text:1.0] xmlns:map[#seq:1 #text:jabber:client] xmlns:stream:map[#seq:2 #text:http://etherx.jabber.org/streams]]]] map[stream:features:map[bind:map[#attr:map[xmlns:map[#seq:0 #text:urn:ietf:params:xml:ns:xmpp-bind]] #seq:0] sm:map[#attr:map[xmlns:map[#seq:0 #text:urn:xmpp:sm:3]] #seq:1]]] map[stream:stream:map[]] PASS ok github.com/clbanning/mxj 0.037s github.com/clbanning/mxj ---------------- anyxml_test.go ... []->x: somevaluesomevaluesomevaluesomeothervaluestring3.14159265true a->x: trythis3.14159265true a->x: trythis3.14159265true f->x: 3.14159625 s->x: somevalue3.1415963 []->x: somevalue somevalue somevalue someothervalue string 3.14159265 true a->x: try this 3.14159265 true f->x: 3.14159625 f->x: 3.14159625 s->x: somevalue 3.1415963 ----------------- TestPrefixDefault ... ----------------- TestPrefixNoHyphen ... ----------------- TestPrefixUnderscore ... ----------------- TestPrefixAt ... ----------------- TestMarshalPrefixDefault ... a test a test ----------------- TestMarshalPrefixNoHyphen ... x: a test this is a test this is not ----------------- TestMarshalPrefixUnderscore ... a test a test ---------------- badxml_test.go TestBadXml ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBadXmlSeq ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. TestBadXmlReader ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBadXmlSeqReader ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. --------------- bom_test.go TestBom ... TestBomData ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBomDataSeq ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. TestBomDataReader ... m: map[Allitems:map[Item:[ map[description:Some description goes here. link:http://www.something.com]]]] m: Some description goes here.http://www.something.com TestBomDataSeqReader ... m: map[Allitems:map[Item:[map[#seq:0 #text:] map[#seq:1 description:map[#seq:1 #text:Some description goes here.] link:map[#seq:0 #text:http://www.something.com]]]]] m: http://www.something.comSome description goes here. ---------------- bulk_test.go ... XmlReader, xmldata: William H. Gaddis The Recognitions One of the seminal American novels of the 20th century. William H. Gaddis JR Won the National Book Award. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. XmlReader, result : { "book": { "author": "William H. Gaddis", "review": "One of the seminal American novels of the 20th century.", "title": "The Recognitions" } } { "book": { "author": "Austin Tappan Wright", "review": "An example of earlier 20th century American utopian fiction.", "title": "Islandia" } } { "book": { "author": "John Hawkes", "review": "A lyrical novel about the construction of Ft. Peck Dam in Montana.", "title": "The Beetle Leg" } } { "book": { "author": { "first_name": "T.E.", "last_name": "Porter" }, "review": "A magical novella.", "title": "King's Day" } } XmlReader, errors : [xmlReader: 2] xml.Decoder.Token() - XML syntax error on line 5: element closed by [xmlReader: 3] xml.Decoder.Token() - XML syntax error on line 2: unexpected end element JsonReader, jsondata: {"book":{"author":"William H. Gaddis","review":"One of the great seminal American novels of the 20th century.","title":"The Recognitions"}} {"book":{"author":"Austin Tappan Wright","review":"An example of earlier 20th century American utopian fiction.","title":"Islandia"}} {"book":{"author":"John Hawkes","review":"A lyrical novel about the construction of Ft. Peck Dam in Montana.","title":"The Beetle Leg"}} {"book":{"author":{"first_name":"T.E.","last_name":"Porter"},"review":"A magical novella.","title":"King's Day"}} { "here":"we", "put":"in", "an":error } JsonReader, result : William H. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day JsonReader, errors : [jsonReader: 5] invalid character 'e' looking for beginning of value ---------------- bulkraw_test.go ... XmlReaderRaw, xmldata: William H. Gaddis The Recognitions One of the seminal American novels of the 20th century. William H. Gaddis JR Won the National Book Award. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. XmlReaderRaw, result : { "book": { "author": "William H. Gaddis", "review": "One of the seminal American novels of the 20th century.", "title": "The Recognitions" } } { "book": { "author": "Austin Tappan Wright", "review": "An example of earlier 20th century American utopian fiction.", "title": "Islandia" } } { "book": { "author": "John Hawkes", "review": "A lyrical novel about the construction of Ft. Peck Dam in Montana.", "title": "The Beetle Leg" } } { "book": { "author": { "first_name": "T.E.", "last_name": "Porter" }, "review": "A magical novella.", "title": "King's Day" } } XmlReaderRaw, errors : [xmlReader: 2] xml.Decoder.Token() - XML syntax error on line 5: element closed by William H. Gaddis JR Won the National Book Award. [xmlReader: 3] xml.Decoder.Token() - XML syntax error on line 2: unexpected end element JsonReaderRaw, jsondata: {"book":{"author":"William H. Gaddis","review":"One of the great seminal American novels of the 20th century.","title":"The Recognitions"}} {"book":{"author":"Austin Tappan Wright","review":"An example of earlier 20th century American utopian fiction.","title":"Islandia"}} {"book":{"author":"John Hawkes","review":"A lyrical novel about the construction of Ft. Peck Dam in Montana.","title":"The Beetle Leg"}} {"book":{"author":{"first_name":"T.E.","last_name":"Porter"},"review":"A magical novella.","title":"King's Day"}} { "here":"we", "put":"in", "an":error } JsonReaderRaw, result : William H. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day JsonReaderRaw, errors : [jsonReader: 5] invalid character 'e' looking for beginning of value {"here":"we","put":"in","an":error} cast_test.go ---------- ------------ TestCastDefault ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":"T", "f":"f", "false":"FALSE", "true":"true"}, "float":"3.14159625", "int":"2019", "string":"string"}} ------------ TestCastTrue ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":false, "true":true}, "float":3.14159625, "int":2019, "string":"string"}} ------------ TestSetCheckTagToSkipFunc ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":"FALSE", "true":true}, "float":3.14159625, "int":"2019", "string":"string"}} ------------ TestCastValuesToFloat(false) ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":true, "f":false, "false":"FALSE", "true":true}, "float":"3.14159625", "int":"2019", "string":"string"}} ------------ TestCastValuesToBool(false) ... mxj.Map{"doc":map[string]interface {}{"bool":map[string]interface {}{"T":"T", "f":"f", "false":"FALSE", "true":"true"}, "float":3.14159625, "int":"2019", "string":"string"}} ================== TestEscapeChars s: "'<>& ss: "'<>& ================== TestXMLEscapeChars s: "'<>& m: "'<>& ================== TestXMLEscapeChars2 "'<>& map[doc:map[simple:map[#text:"'<>& _attr1:an attribute]]] mv: "'<>& ================== TestXMLSeqEscapeChars data: >0-2y m: map[doc:map[shortDescription:map[#seq:0 #text:>0-2y]]] m: >0-2y ================== TestXMLSeqEscapeChars2 data: >0-2y <10-15 m: map[doc:map[shortDescription:[map[#attr:map[test:map[#seq:0 #text:&something here]] #seq:0 #text:>0-2y] map[#attr:map[quote:map[#seq:1 #text:"] test:map[#seq:0 #text:something there]] #seq:1 #text:<10-15]]]] m: >0-2y <10-15 ------------ exists_test.go ---------------- files_test.go ... NewMapsFromJsonFile() map[a:test file:for files_test.go:case this:is] map[JSON:values true:true two:2 with:just] caught error: stat nil: no such file or directory caught error: error: invalid character 'J' looking for beginning of value - reading: {"with":"some","bad":JSON,"in":"it"} NewMapsFromJsonFileRaw() {map[a:test file:for files_test.go:case this:is] [123 34 116 104 105 115 34 58 34 105 115 34 44 34 97 34 58 34 116 101 115 116 34 44 34 102 105 108 101 34 58 34 102 111 114 34 44 34 102 105 108 101 115 95 116 101 115 116 46 103 111 34 58 34 99 97 115 101 34 125]} {map[JSON:values true:true two:2 with:just] [123 34 119 105 116 104 34 58 34 106 117 115 116 34 44 34 116 119 111 34 58 50 44 34 74 83 79 78 34 58 34 118 97 108 117 101 115 34 44 34 116 114 117 101 34 58 116 114 117 101 125]} caught error: stat nil: no such file or directory caught error: error: invalid character 'J' looking for beginning of value - reading: {"with":"some","bad":JSON,"in":"it"} NewMapsFromXmlFile() map[doc:map[data:for files.go some:test]] map[msg:map[another:doc for:test case just:some]] caught error: stat nil: no such file or directory caught error: error: xml.Decoder.Token() - XML syntax error on line 4: element closed by - reading: some doc NewMapsFromXmlFileRaw() {map[doc:map[data:for files.go some:test]] [60 100 111 99 62 10 9 60 115 111 109 101 62 116 101 115 116 60 47 115 111 109 101 62 10 9 60 100 97 116 97 62 102 111 114 32 102 105 108 101 115 46 103 111 60 47 100 97 116 97 62 10 60 47 100 111 99 62]} {map[msg:map[another:doc for:test case just:some]] [10 60 109 115 103 62 10 9 60 106 117 115 116 62 115 111 109 101 60 47 106 117 115 116 62 10 9 60 97 110 111 116 104 101 114 62 100 111 99 60 47 97 110 111 116 104 101 114 62 10 9 60 102 111 114 62 116 101 115 116 32 99 97 115 101 60 47 102 111 114 62 10 60 47 109 115 103 62]} caught error: stat nil: no such file or directory caught error: error: xml.Decoder.Token() - XML syntax error on line 4: element closed by - reading: some doc TestMaps() mvs: [map[a:test this:is] map[a:test this:is]] JsonString(): {"a":"test","this":"is"}{"a":"test","this":"is"} JsonStringIndent(): { "a": "test", "this": "is" } { "a": "test", "this": "is" } XmlString(): testistestis XmlStringIndent(): test is test is map[a:test file:for files_test.go:case this:is] map[JSON:values true:true two:2 with:just] files_test_dup.json written files_test_indent.json written map[doc:map[data:for files.go some:test]] map[msg:map[another:doc for:test case just:some]] files_test_dup.xml written files_test_indent.xml written ---------------- gob_test.go ... m: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] m: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] mv: map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] m : map[five:map[hi:there] four:[1 2 3 4] one:1 three:tres two:2.0001] ================== TestXmlCheckIsValid map[:empty $invalid:hex$ entities:<>& nil:] map[$invalid:hex$ entities:<>& nil:] map[entities:<>& nil:] map[nil:] map[doc:map[elem:map[#seq:0 #text:element]]] ---------------- j2x_test .go ... j2x, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } j2x, m : map[key1:string key2:34 key3:true key4:unsafe: <>& key5:] j2x, xml : string34trueunsafe: <>& ---------------- json_test.go ... NewMapJson, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } NewMapJson, m : mxj.Map{"key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":interface {}(nil)} NewMapJson, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } NewMapJson, m : mxj.Map{"key1":"string", "key2":"34", "key3":true, "key4":"unsafe: <>&", "key5":interface {}(nil)} NewMapJsonError, jdata : { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null NewMapJsonError, merror: unexpected EOF NewMapJsonError, newData : { "this":"is", "in":error } NewMapJsonError, merror : invalid character 'e' looking for beginning of value NewMapJsonReader, jb: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&"} NewMapJsonReader, m : mxj.Map{"key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&"} NewMapJsonReader, jb: {"key":"value in new JSON string"} NewMapJsonReader, m : mxj.Map{"key":"value in new JSON string"} NewMapJsonReader, jb: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&"} NewMapJsonReader, m : mxj.Map{"key1":"string", "key2":"34", "key3":true, "key4":"unsafe: <>&"} NewMapJsonReader, jb: {"key":"value in new JSON string"} NewMapJsonReader, m : mxj.Map{"key":"value in new JSON string"} Json, jdata: { "key1":"string", "key2":34, "key3":true, "key4":"unsafe: <>&", "key5":null } Json, j : {"key1":"string","key2":34,"key3":true,"key4":"unsafe: <>&","key5":null} Json, j safe: {"key1":"string","key2":34,"key3":true,"key4":"unsafe: \u003c\u003e\u0026","key5":null} JsonWriter, raw: {"and":"a","bool":true,"float":3.14159,"this":"is a"} JsonWriter, b : {"and":"a","bool":true,"float":3.14159,"this":"is a"} -------------- keystolower_test.go TestToLower ... ----------- TestSetSubkeyFieldSeparator ---------------- keyvalues_test.go ... PathsForKey, doc1 ... PathsForKey, doc1#author ... ss: [doc.books.book.author] PathsForKey, doc1#books ... ss: [doc.books] PathsForKey, doc2 ... PathForKey, doc2#book ... ss: [doc.book doc.books.book] PathForKeyShortest, doc2#book ... s : doc.book ValuesForKey ... ValuesForKey, doc1#author ... ss.v: William T. Gaddis ... ss.v: Austin Tappan Wright ... ss.v: John Hawkes ... ss.v: map[first_name:T.E. last_name:Porter] ValuesForKey, doc1#book ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForKey, doc1#book,-seq:3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForKey, doc1#book, author:William T. Gaddis ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ValuesForKey, doc1#author, -seq:1 ValuesForPath ... ValuesForPath, doc.books.book.author ... ss.v: William T. Gaddis ... ss.v: Austin Tappan Wright ... ss.v: John Hawkes ... ss.v: map[first_name:T.E. last_name:Porter] ValuesForPath, doc.books.book ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForPath, doc.books.book -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForPath, doc.books.* -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForPath, doc.*.* -seq=3 ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ValuesForNotKey ... ValuesForPath, doc.books.book !author:William T. Gaddis ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ValuesForPath, doc.books.book !author:* ValuesForPath, doc.books.book !unknown:* ... ss.v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] ... ss.v: map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] ... ss.v: map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] ... ss.v: map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] ---------------- indexedarray_test.go ... j_data: { "stuff":[ { "data":[ { "F":1 }, { "F":2 }, { "F":3 } ] }, { "data":[ 4, 5, 6 ] } ] } m: map[stuff:[map[data:[map[F:1] map[F:2] map[F:3]]] map[data:[4 5 6]]]] stuff[0]: [map[data:[map[F:1] map[F:2] map[F:3]]]] stuff.data: [map[F:1] map[F:2] map[F:3] 4 5 6] stuff[0].data: [map[F:1] map[F:2] map[F:3]] stuff.data[0]: [map[F:1] 4] stuff.*[2]: [map[F:3] 6] stuff.data.F: [1 2 3] *.*.F: [1 2 3] stuff.data[0].F: [1] stuff.data[1].F: [2] stuff[0].data[2]: [map[F:3]] stuff[1].data[1]: [5] stuff[1].data[1].F [] stuff[1].data.F: [] x_data: 1 2 3 4 5 6 m: map[doc:map[stuff:[map[data:[map[-seq:1.1 F:1] map[-seq:1.2 F:2] map[-seq:1.3 F:3]]] map[data:[map[-seq:2.1 F:4] map[-seq:2.2 F:5] map[-seq:2.3 F:6]]]]]] doc.stuff[0]: [map[data:[map[-seq:1.1 F:1] map[-seq:1.2 F:2] map[-seq:1.3 F:3]]]] doc.stuff.data[0]: [map[-seq:1.1 F:1] map[-seq:2.1 F:4]] doc.stuff.data[0] -seq:2.1: [map[-seq:2.1 F:4]] doc.stuff.data[0].F: [1 4] doc.stuff[0].data[2]: [map[-seq:1.3 F:3]] doc.stuff[1].data[1].F: [5] ak_data: { "section1":{"data" : [{"F1" : "F1 data","F2" : "F2 data"},{"F1" : "demo 123","F2" : "abc xyz"}]}} m: map[section1:map[data:[map[F1:F1 data F2:F2 data] map[F1:demo 123 F2:abc xyz]]]] section1.data[0].F1: [F1 data] ---------------- leafnode_test.go ... json1-LeafNodes: mxj.LeafNode{Path:"friends[0].skills[0]", Value:44} mxj.LeafNode{Path:"friends[0].skills[1]", Value:12} json1-LeafPaths: "friends[0].skills[0]" "friends[0].skills[1]" json2-LeafNodes: mxj.LeafNode{Path:"friends.skills[0]", Value:44} mxj.LeafNode{Path:"friends.skills[1]", Value:12} json1-LeafValues: 44 12 json3-LeafNodes: mxj.LeafNode{Path:"a", Value:"list"} mxj.LeafNode{Path:"of[0]", Value:"data"} mxj.LeafNode{Path:"of[1]", Value:"of"} mxj.LeafNode{Path:"of[2]", Value:3} mxj.LeafNode{Path:"of[3]", Value:"types"} mxj.LeafNode{Path:"of[4]", Value:true} json3-LeafValues: "list" "data" "of" 3 "types" true json3-LeafPaths: "a" "of[0]" "of[1]" "of[2]" "of[3]" "of[4]" xml2data2-LeafValues: mxj.LeafNode{Path:"doc.item[0].-num", Value:"2"} mxj.LeafNode{Path:"doc.item[0].-color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0].#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[1].-num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].-color", Value:"green"} mxj.LeafNode{Path:"doc.item[1].arm[0].-side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[0].-length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[1].-length", Value:"3.6"} mxj.LeafNode{Path:"doc.item[1].arm[1].-side", Value:"right"} xml2data2-LeafValues(NoAttributes): mxj.LeafNode{Path:"doc.item[0]", Value:"Item 2 is blue"} no-hyphen-xml2data2-LeafValues: mxj.LeafNode{Path:"doc.item[0].color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0].#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[0].num", Value:"2"} mxj.LeafNode{Path:"doc.item[1].num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].color", Value:"green"} mxj.LeafNode{Path:"doc.item[1].arm[0].length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[0].side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[1].side", Value:"right"} mxj.LeafNode{Path:"doc.item[1].arm[1].length", Value:"3.6"} no-hyphen-xml2data2-LeafValues(NoAttributes): mxj.LeafNode{Path:"doc.item[0].color", Value:"blue"} mxj.LeafNode{Path:"doc.item[0]", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item[0].num", Value:"2"} mxj.LeafNode{Path:"doc.item[1].num", Value:"3"} mxj.LeafNode{Path:"doc.item[1].color", Value:"green"} mxj.LeafNode{Path:"doc.item[1].arm[0].side", Value:"left"} mxj.LeafNode{Path:"doc.item[1].arm[0].length", Value:"3.5"} mxj.LeafNode{Path:"doc.item[1].arm[1].side", Value:"right"} mxj.LeafNode{Path:"doc.item[1].arm[1].length", Value:"3.6"} DotNotation-LeafValues: mxj.LeafNode{Path:"doc.item.0.-num", Value:"2"} mxj.LeafNode{Path:"doc.item.0.-color", Value:"blue"} mxj.LeafNode{Path:"doc.item.0.#text", Value:"Item 2 is blue"} mxj.LeafNode{Path:"doc.item.1.-num", Value:"3"} mxj.LeafNode{Path:"doc.item.1.-color", Value:"green"} mxj.LeafNode{Path:"doc.item.1.arm.0.-side", Value:"left"} mxj.LeafNode{Path:"doc.item.1.arm.0.-length", Value:"3.5"} mxj.LeafNode{Path:"doc.item.1.arm.1.-side", Value:"right"} mxj.LeafNode{Path:"doc.item.1.arm.1.-length", Value:"3.6"} ------------------ misc_test.go ... ---------------- mxj_test.go ... TestMap, m: mxj.Map{"key":"value", "newkey":map[string]interface {}{"bool":true, "float":3.14159, "listkey":[]interface {}{3.1415962535, false, "for all good men"}, "string":"Now is the time"}} TestMap, StringIndent - key : [string] value newkey : bool : [bool] true float : [float64] 3.14159 listkey : [[]interface{}] [float64] 3.1415962535 [bool] false [string] for all good men string : [string] Now is the time TestMap, StringIndent NoTypeInfo - key : value newkey : bool : true float : 3.14159 listkey : 3.1415962535 false for all good men string : Now is the time TestMap, m_fromXML: mxj.Map{"doc":map[string]interface {}{"tag":map[string]interface {}{"sub_tag1":"Hello", "sub_tag2":"World"}}} TestMap, StringIndent - doc : tag : sub_tag1 : [string] Hello sub_tag2 : [string] World TestMap, StringIndent NoTypeInfo - doc : tag : sub_tag1 : Hello sub_tag2 : World TestMap, m.Copy() - map[doc:map[tag:map[sub_tag1:Hello sub_tag2:World]]] ---------------- namespace_test.go ... ---------------- TestBeautifyXml ... 123John Brown 123 John Brown ------------ TestNan ... foo.bar: NAN foo.bar: INF foo.bar: -INF foo.bar: NaN ---------------- newmap_test.go ... j: { "A":"this", "B":"is", "C":"a", "D":"test" } m: mxj.Map{"A":"this", "B":"is", "C":"a", "D":"test"} eval - m.NewMap("A:AA", "B:BB", "C:cc", "D:help") n.Json(): {"AA":"this","BB":"is","cc":"a","help":"test"} n.Xml(): thisisatest n.XmlIndent(): this is a test eval - m.NewMap("A:AA.A", "B:AA.B", "C:AA.B.cc", "D:hello.help") n.Json(): {"AA":{"A":"this","B":["is",{"cc":"a"}]},"hello":{"help":"test"}} n.Xml(): thisisatest n.XmlIndent(): this is a test eval - m.NewMap keypairs: [A:xml.AA B:xml.AA.hello.again C:xml.AA D:xml.AA.hello.help] n.Json(): {"xml":{"AA":["this",{"hello":{"again":"is","help":"test"}},"a"]}} n.Xml(): thisistesta n.XmlIndent(): this is test a original value: no default:text default:word new value: no default:text default:word original value: yes default:text default:word new value: yes default:text default:word ------------ rename_test.go ---------------- seqnum_test.go ... m1: mxj.Map{"Obj":map[string]interface {}{"-c":"la", "-h":"da", "-x":"dee", "IntObj":[]interface {}{map[string]interface {}{"-id":3, "_seq":0}, map[string]interface {}{"-id":2, "_seq":2}}, "IntObj1":map[string]interface {}{"-id":1, "_seq":1}}} { "Obj": { "-c": "la", "-h": "da", "-x": "dee", "IntObj": [ { "-id": 3, "_seq": 0 }, { "-id": 2, "_seq": 2 } ], "IntObj1": { "-id": 1, "_seq": 1 } } } m2: mxj.Map{"Obj":map[string]interface {}{"-c":"la", "-h":"da", "-x":"dee", "IntObj":[]interface {}{map[string]interface {}{"-id":3, "_seq":0}, map[string]interface {}{"-id":2, "_seq":2}}, "NewObj":map[string]interface {}{"BoolObj":map[string]interface {}{"#text":true, "_seq":2}, "StringObj":map[string]interface {}{"#text":"hello", "_seq":1}, "_seq":1, "id":map[string]interface {}{"#text":1, "_seq":0}}}} { "Obj": { "-c": "la", "-h": "da", "-x": "dee", "IntObj": [ { "-id": 3, "_seq": 0 }, { "-id": 2, "_seq": 2 } ], "NewObj": { "BoolObj": { "#text": true, "_seq": 2 }, "StringObj": { "#text": "hello", "_seq": 1 }, "_seq": 1, "id": { "#text": 1, "_seq": 0 } } } } ----------- TestSnakeCase ----------------- TestStrictModeXml ... m: map[document:map[goes_by: lang:E name:Bill & Hallett salute:Duc & 123xx]] ----------------- TestStrictModeXmlSeq ... m: map[document:map[goes_by:map[#seq:2 #text:] lang:map[#seq:3 #text:E] name:map[#seq:0 #text:Bill & Hallett] salute:map[#seq:1 #text:Duc & 123xx]]] ----------------- TestStrictFail ... OK ---------------- struct_test.go ... Struct, m: mxj.Map{"bool":true, "float":3.14159, "int":4, "private":"Somewhere over the rainbow", "str":"now's the time"} Struct, s: mxj.str{IntVal:4, StrVal:"now's the time", FloatVal:3.14159, BoolVal:true, private:""} StructError, mverr: mv.Struct() error: argument is not type Ptr ----------------- structvalue_test.go ... ---------------- updatevalues_test.go ... m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] v: William T. Gaddis v: Austin Tappan Wright v: John Hawkes v: map[first_name:T.E. last_name:Porter] m.UpdateValuesForPath("author:NoName", "doc.books.book.author") 4 updates v: NoName v: NoName v: NoName v: NoName m.UpdateValuesForPath("author:William Gadddis", "doc.books.book.author", "title:The Recognitions") 4 updates v: William Gadddis v: Austin Tappen Wright v: John Hawkes v: T. E. Porter m.UpdateValuesForPath("author:William T. Gaddis", "doc.books.book.*", "title:The Recognitions") 1 updates v: William T. Gaddis v: Austin Tappen Wright v: John Hawkes v: T. E. Porter m.UpdateValuesForPath("title:The Cannibal", "doc.books.book.title", "author:John Hawkes") 2 updates v: map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] v: map[-seq:2 author:Austin Tappen Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] v: map[-seq:3 author:John Hawkes review:A novel on his experiences in WWII. title:The Cannibal] v: map[-seq:4 author:T. E. Porter review:A magical novella. title:King's Day] m.UpdateValuesForPath("books:", "doc.books") 1 updates m: map[doc:map[books:]] m.UpdateValuesForPath(mm, "*") 1 updates m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] newDoc: simple element m: map[tag:map[#text:simple element -color:green -shape:square]] m.UpdateValuesForPath("#text:maybe not so simple element", "tag") n: 1 m: map[tag:map[#text:maybe not so simple element -color:green -shape:square]] m.UpdateValuesForPath("#text:simple element again", "*") n: 1 m: map[tag:map[#text:simple element again -color:green -shape:square]] biblio : author : [[]interface{}] books : book : [[]interface{}] date : [string] 1955 review : [string] A novel that changed the face of American literature. title : [string] The Recognitions date : [string] 1975 review : [string] Winner of National Book Award for Fiction. title : [string] JR name : [string] William Gaddis books : book : [[]interface{}] date : [string] 1949 review : [string] A novel on his experiences in WWII. title : [string] The Cannibal date : [string] 1951 review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg date : [string] 1970 review : [string] Where everyone wants to vacation. title : [string] The Blood Oranges name : [string] John Hawkes m.UpdateValuesForPath("review:National Book Award winner.", "*.*.*.*", "title:JR") 1 updates v: map[books:map[book:[map[date:1955 review:A novel that changed the face of American literature. title:The Recognitions] map[date:1975 review:National Book Award winner. title:JR]]] name:William Gaddis] m.UpdateValuesForPath(newVal, path, oldVal) 5 updates biblio : author : [[]interface{}] books : book : [[]interface{}] date : [float64] 1955 review : [string] A novel that changed the face of American literature. title : [string] The Recognitions date : [float64] 1975 review : [string] National Book Award winner. title : [string] JR name : [string] William Gaddis books : book : [[]interface{}] date : [float64] 1949 review : [string] A novel on his experiences in WWII. title : [string] The Cannibal date : [float64] 1951 review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg date : [float64] 1970 review : [string] Where everyone wants to vacation. title : [string] The Blood Oranges name : [string] John Hawkes ---------------- xml2_test.go ... NewMapXml4, x: William T. Gaddis The Recognitions One of the great seminal American novels of the 20th century. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. NewMapXml4, m: map[doc:map[books:map[book:[map[-seq:1 author:William T. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]]]] NewMapXml4, s: doc : books : book : [[]interface{}] -seq : [string] 1 author : [string] William T. Gaddis review : [string] One of the great seminal American novels of the 20th century. title : [string] The Recognitions -seq : [string] 2 author : [string] Austin Tappan Wright review : [string] An example of earlier 20th century American utopian fiction. title : [string] Islandia -seq : [string] 3 author : [string] John Hawkes review : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : [string] The Beetle Leg -seq : [string] 4 author : first_name : [string] T.E. last_name : [string] Porter review : [string] A magical novella. title : [string] King's Day NewMapXml4, b: William T. Gaddis One of the great seminal American novels of the 20th century. The Recognitions Austin Tappan Wright An example of earlier 20th century American utopian fiction. Islandia John Hawkes A lyrical novel about the construction of Ft. Peck Dam in Montana. The Beetle Leg T.E. Porter A magical novella. King's Day NewMapXml5, raw: help me! Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day NewMapXml5, m: map[msg:map[-mpriority:1 -mtype:alert song:map[-author:Mayer Hawthorne -title:A Long Time chorus:map[line:[map[#text:It's going to take a long time -no:1] map[#text:It's going to take it, but we'll make it one day -no:2] map[#text:It's going to take a long time -no:3] map[#text:It's going to take it, but we'll make it one day -no:4]]] verses:map[verse:[map[-name:verse 1 -no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2] map[#text:One component at a time -no:3] map[#text:There's got to be a better way -no:4] map[#text:Oh, people came from miles around -no:5] map[#text:Searching for a steady job -no:6] map[#text:Welcome to the Motor Town -no:7] map[#text:Booming like an atom bomb -no:8]]] map[-name:verse 2 -no:2 line:[map[#text:Oh, Henry was the end of the story -no:1] map[#text:Then everything went wrong -no:2] map[#text:And we'll return it to its former glory -no:3] map[#text:But it just takes so long -no:4]]]]]] text:help me!]] NewMapXml5, s: msg : -mpriority : [string] 1 -mtype : [string] alert song : -author : [string] Mayer Hawthorne -title : [string] A Long Time chorus : line : [[]interface{}] #text : [string] It's going to take a long time -no : [string] 1 #text : [string] It's going to take it, but we'll make it one day -no : [string] 2 #text : [string] It's going to take a long time -no : [string] 3 #text : [string] It's going to take it, but we'll make it one day -no : [string] 4 verses : verse : [[]interface{}] -name : [string] verse 1 -no : [string] 1 line : [[]interface{}] #text : [string] Henry was a renegade -no : [string] 1 #text : [string] Didn't like to play it safe -no : [string] 2 #text : [string] One component at a time -no : [string] 3 #text : [string] There's got to be a better way -no : [string] 4 #text : [string] Oh, people came from miles around -no : [string] 5 #text : [string] Searching for a steady job -no : [string] 6 #text : [string] Welcome to the Motor Town -no : [string] 7 #text : [string] Booming like an atom bomb -no : [string] 8 -name : [string] verse 2 -no : [string] 2 line : [[]interface{}] #text : [string] Oh, Henry was the end of the story -no : [string] 1 #text : [string] Then everything went wrong -no : [string] 2 #text : [string] And we'll return it to its former glory -no : [string] 3 #text : [string] But it just takes so long -no : [string] 4 text : [string] help me! NewMapXml5, b: It's going to take a long timeIt's going to take it, but we'll make it one dayIt's going to take a long timeIt's going to take it, but we'll make it one dayHenry was a renegadeDidn't like to play it safeOne component at a timeThere's got to be a better wayOh, people came from miles aroundSearching for a steady jobWelcome to the Motor TownBooming like an atom bombOh, Henry was the end of the storyThen everything went wrongAnd we'll return it to its former gloryBut it just takes so longhelp me! NewMapXml5, b: It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long help me! NewMapXml6, raw: Code Review - My issueshttp://codereview.appspot.com/rietveld<>rietveld: an attempt at pubsubhubbub 2009-10-04T01:35:58+00:00email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19a An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a &lt;link rel=&quot;hub&quot; href=&quot;hub-server&quot;&gt; tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can&#39;t quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed&#39;s actual URL in the link rel=&quot;self&quot;, but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). rietveld: correct tab handling 2009-10-03T23:02:17+00:00email-address-removedurn:md5:0a2a4f19bb815101f0ba2904aed7c35a This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn&#39;t know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. NewMapXml6, m: map[feed:map[-lang:en-us -updated:2009-10-04T01:35:58+00:00 -xmlns:http://www.w3.org/2005/Atom author:map[name:rietveld<>] entry:[map[author:map[name:email-address-removed] id:urn:md5:134d9179c41f806be79b3a5f7877d19a link:map[-href:http://codereview.appspot.com/126085 -rel:alternate] summary:map[#text:An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). -type:html] title:rietveld: an attempt at pubsubhubbub updated:2009-10-04T01:35:58+00:00] map[author:map[name:email-address-removed] id:urn:md5:0a2a4f19bb815101f0ba2904aed7c35a link:map[-href:http://codereview.appspot.com/124106 -rel:alternate] summary:map[#text:This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. -type:html] title:rietveld: correct tab handling updated:2009-10-03T23:02:17+00:00]] id:http://codereview.appspot.com/ link:[map[-href:http://codereview.appspot.com/ -rel:alternate] map[-href:http://codereview.appspot.com/rss/mine/rsc -rel:self]] title:Code Review - My issues]] NewMapXml6, s: feed : -lang : [string] en-us -updated : [string] 2009-10-04T01:35:58+00:00 -xmlns : [string] http://www.w3.org/2005/Atom author : name : [string] rietveld<> entry : [[]interface{}] author : name : [string] email-address-removed id : [string] urn:md5:134d9179c41f806be79b3a5f7877d19a link : -href : [string] http://codereview.appspot.com/126085 -rel : [string] alternate summary : #text : [string] An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). -type : [string] html title : [string] rietveld: an attempt at pubsubhubbub updated : [string] 2009-10-04T01:35:58+00:00 author : name : [string] email-address-removed id : [string] urn:md5:0a2a4f19bb815101f0ba2904aed7c35a link : -href : [string] http://codereview.appspot.com/124106 -rel : [string] alternate summary : #text : [string] This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. -type : [string] html title : [string] rietveld: correct tab handling updated : [string] 2009-10-03T23:02:17+00:00 id : [string] http://codereview.appspot.com/ link : [[]interface{}] -href : [string] http://codereview.appspot.com/ -rel : [string] alternate -href : [string] http://codereview.appspot.com/rss/mine/rsc -rel : [string] self title : [string] Code Review - My issues NewMapXml6, b: rietveld<>email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19aAn attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc).rietveld: an attempt at pubsubhubbub2009-10-04T01:35:58+00:00email-address-removedurn:md5:0a2a4f19bb815101f0ba2904aed7c35aThis fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py.rietveld: correct tab handling2009-10-03T23:02:17+00:00http://codereview.appspot.com/Code Review - My issues NewMapXml6, b: rietveld<> email-address-removed urn:md5:134d9179c41f806be79b3a5f7877d19a An attempt at adding pubsubhubbub support to Rietveld. http://code.google.com/p/pubsubhubbub http://code.google.com/p/rietveld/issues/detail?id=155 The server side of the protocol is trivial: 1. add a <link rel="hub" href="hub-server"> tag to all feeds that will be pubsubhubbubbed. 2. every time one of those feeds changes, tell the hub with a simple POST request. I have tested this by adding debug prints to a local hub server and checking that the server got the right publish requests. I can't quite get the server to work, but I think the bug is not in my code. I think that the server expects to be able to grab the feed and see the feed's actual URL in the link rel="self", but the default value for that drops the :port from the URL, and I cannot for the life of me figure out how to get the Atom generator deep inside django not to do that, or even where it is doing that, or even what code is running to generate the Atom feed. (I thought I knew but I added some assert False statements and it kept running!) Ignoring that particular problem, I would appreciate feedback on the right way to get the two values at the top of feeds.py marked NOTE(rsc). rietveld: an attempt at pubsubhubbub 2009-10-04T01:35:58+00:00 email-address-removed urn:md5:0a2a4f19bb815101f0ba2904aed7c35a This fixes the buggy tab rendering that can be seen at http://codereview.appspot.com/116075/diff/1/2 The fundamental problem was that the tab code was not being told what column the text began in, so it didn't know where to put the tab stops. Another problem was that some of the code assumed that string byte offsets were the same as column offsets, which is only true if there are no tabs. In the process of fixing this, I cleaned up the arguments to Fold and ExpandTabs and renamed them Break and _ExpandTabs so that I could be sure that I found all the call sites. I also wanted to verify that ExpandTabs was not being used from outside intra_region_diff.py. rietveld: correct tab handling 2009-10-03T23:02:17+00:00 http://codereview.appspot.com/ Code Review - My issues ------------ xml3_test.go ========== TestOnlyAttributes
========== TestOnlyAttributesSeq
========== TestDecodeSimpleValuesAsMap xml: 30102 Mini Drone Inteligente - Branco 149.90 m : map[item:map[id:map[#text:30102] price:map[#text:149.90 -unit:BRL] title:map[#text:Mini Drone Inteligente - Branco]]] ========== (default) m : map[item:map[id:30102 price:map[#text:149.90 -unit:BRL] title:Mini Drone Inteligente - Branco]] ---------------- xml_test.go ... ==================== TestNewMapXmlReader ... NewMapXmlReader, raw: is a test NewMapXmlReader, m : map[root:map[this:is a test]] NewMapXmlReader, raw: something more12 NewMapXmlReader, m : map[root2:map[list:map[item:[1 2]] newtag:something more]] Xml_1, mv: map[boolean:true float:3.14159625 null: tag1:some data tag2:more data] Xml_1, x : true3.14159625some datamore data Xml_2, mv: map[array:[string true 36.4]] Xml_2, x : stringtrue36.4 Xml_3, mv: map[array:[[string true 36.4] string2]] Xml_3, x : stringtrue36.4string2 Xml_4, mv: map[array:map[innerkey:[[string true 36.4] string2]]] Xml_4, x : stringtrue36.4string2 Xml_5, mv: map[array:[map[innerkey:[[string true 36.4] string2]] map[some:more]]] Xml_5, x : stringtrue36.4string2more Xml_strings, mv: map[sometag:some data strings:[string1 string2]] Xml_strings, x : some datastring1string2 XmlWriter, b : true3.14159625some datamore data ---------------- xmlseq_test.go ... NewMapXmlSeq, x: William T. Gaddis Gaddis is one of the most influential but little know authors in America. The Recognitions One of the great seminal American novels of the 20th century. Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. NewMapXmlSeq, s: doc : books : #seq : [int] 0 book : [[]interface{}] #attr : seq : #seq : [int] 0 #text : [string] 1 #comment : #seq : [int] 3 #text : [string] here's the rest of the review #seq : [int] 0 author : #seq : [int] 0 #text : [string] William T. Gaddis review : [[]interface{}] #seq : [int] 1 #text : [string] Gaddis is one of the most influential but little know authors in America. #seq : [int] 4 #text : [string] One of the great seminal American novels of the 20th century. #seq : [int] 5 #text : [string] Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. title : #seq : [int] 2 #text : [string] The Recognitions #attr : seq : #seq : [int] 0 #text : [string] 2 #seq : [int] 1 author : #seq : [int] 0 #text : [string] Austin Tappan Wright review : #seq : [int] 2 #text : [string] An example of earlier 20th century American utopian fiction. title : #seq : [int] 1 #text : [string] Islandia #directive : #seq : [int] 2 #text : [string] throw in a directive here #seq : [int] 2 author : #seq : [int] 0 #text : [string] John Hawkes review : #seq : [int] 3 #text : [string] A lyrical novel about the construction of Ft. Peck Dam in Montana. title : #seq : [int] 1 #text : [string] The Beetle Leg #seq : [int] 3 author : #procinst : #inst : [string] first_name last_name #seq : [int] 0 #target : [string] cat #seq : [int] 0 first_name : #seq : [int] 1 #text : [string] T.E. last_name : #seq : [int] 2 #text : [string] Porter review : #seq : [int] 2 #text : [string] A magical novella. title : #seq : [int] 1 #text : [string] King's Day NewMapXmlSeq, msv.XmlIndent(): William T. Gaddis Gaddis is one of the most influential but little know authors in America. The Recognitions One of the great seminal American novels of the 20th century. Without it Thomas Pynchon probably wouldn't have written Gravity's Rainbow. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. ------------ TestXmlSeqDecodeError ... err ok: element book not properly terminated, got books at #461 ----------- TestXMPPStreamTag ... map[stream:map[-from:example.com -stream:http://etherx.jabber.org/streams -version:1.0 -xmlns:jabber:client]] map[features:map[bind:map[-xmlns:urn:ietf:params:xml:ns:xmpp-bind] sm:map[-xmlns:urn:xmpp:sm:3]]] map[stream:map[]] ----------- TestXMPPStreamTagSeq ... map[stream:stream:map[#attr:map[from:map[#seq:0 #text:example.com] version:map[#seq:3 #text:1.0] xmlns:map[#seq:1 #text:jabber:client] xmlns:stream:map[#seq:2 #text:http://etherx.jabber.org/streams]]]] map[stream:features:map[bind:map[#attr:map[xmlns:map[#seq:0 #text:urn:ietf:params:xml:ns:xmpp-bind]] #seq:0] sm:map[#attr:map[xmlns:map[#seq:0 #text:urn:xmpp:sm:3]] #seq:1]]] map[stream:stream:map[]] PASS ok github.com/clbanning/mxj 0.038s github.com/clbanning/mxj/j2x [{"some-null-value":"", "a-non-null-value":"bar"}] xmloutput: bar {"somekey":[{"value":"1st"},{"value":"2nd"}]} xmloutput: 1st2nd PASS ok github.com/clbanning/mxj/j2x 0.004s github.com/clbanning/mxj/j2x [{"some-null-value":"", "a-non-null-value":"bar"}] xmloutput: bar {"somekey":[{"value":"1st"},{"value":"2nd"}]} xmloutput: 1st2nd PASS ok github.com/clbanning/mxj/j2x 0.003s github.com/clbanning/mxj/x2j ? github.com/clbanning/mxj/x2j [no test files] github.com/clbanning/mxj/x2j-wrapper TestGoofy ... MapToDoc: map[byteVal:[116 104 101 32 97 105 100 32 111 102 32 116 104 101 105 114 32 99 111 117 110 116 114 121] goofyVal:0xc0000104f8 nilVal: xml:map[tag:map[-bool:true -one:1 -pi:3.1415962535] tagJR:map[-key:value]]] v: {"byteVal":"dGhlIGFpZCBvZiB0aGVpciBjb3VudHJ5","goofyVal":{"S":"Now is the time for","Sp":"all good men to come to"},"nilVal":null,"xml":{"tag":{"-bool":"true","-one":"1","-pi":"3.1415962535"},"tagJR":{"-key":"value"}}} TestGoofier ... MapToDoc: map[byteVal:[116 104 101 32 97 105 100 32 111 102 32 116 104 101 105 114 32 99 111 117 110 116 114 121] goofierVal:0xc0000151a0 goofyVal:0xc0000104f8 nilVal: xml:map[tag:map[-bool:true -one:1 -pi:3.1415962535] tagJR:map[-key:value]]] v: {"byteVal":"dGhlIGFpZCBvZiB0aGVpciBjb3VudHJ5","goofierVal":{"G":{"S":"Now is the time for","Sp":"all good men to come to"},"B":"dGhlIHRyZWUgb2YgZnJlZWRvbSBtdXN0IHBlcmlvZGljYWxseSBiZQ==","N":null},"goofyVal":{"S":"Now is the time for","Sp":"all good men to come to"},"nilVal":null,"xml":{"tag":{"-bool":"true","-one":"1","-pi":"3.1415962535"},"tagJR":{"-key":"value"}}} ToMap - Read doc: barworld entry : vars : foo :[string] bar foo2 : hello :[string] world ToJson - Read doc: barworld json: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ToJsonIndent - Read doc: barworld json: { "entry": { "vars": { "foo": "bar", "foo2": { "hello": "world" } } } } BulkParser (with error) - Read doc: barworldanbarworld phandler m: map[entry:map[vars:map[foo:bar foo2:map[hello:world]]]] ehandler err: xml.Decoder.Token() - XML syntax error on line 1: element closed by phandler m: map[entry:map[vars:map[foo:bar foo2:map[hello:world]]]] BulkParser (with error) - Read doc: barworldanbarworld phandlerj s: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ehandler err: xml.Decoder.Token() - XML syntax error on line 1: element closed by phandlerj s: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ================================ x2j_test.go ... =================== TestX2j ... XML doc: help me! Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day DocToMap(), recast==true: msg : text :[string] help me! song : chorus : line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] It's going to take a long time [item: 1] -no :[float64] 2.00e+00 #text :[string] It's going to take it, but we'll make it one day [item: 2] -no :[float64] 3.00e+00 #text :[string] It's going to take a long time [item: 3] -no :[float64] 4.00e+00 #text :[string] It's going to take it, but we'll make it one day -title :[string] A Long Time -author :[string] Mayer Hawthorne verses : verse :[[]interface{}] [item: 0] -name :[string] verse 1 -no :[float64] 1.00e+00 line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] Henry was a renegade [item: 1] #text :[string] Didn't like to play it safe -no :[float64] 2.00e+00 [item: 2] #text :[string] One component at a time -no :[float64] 3.00e+00 [item: 3] -no :[float64] 4.00e+00 #text :[string] There's got to be a better way [item: 4] -no :[float64] 5.00e+00 #text :[string] Oh, people came from miles around [item: 5] -no :[float64] 6.00e+00 #text :[string] Searching for a steady job [item: 6] -no :[float64] 7.00e+00 #text :[string] Welcome to the Motor Town [item: 7] -no :[float64] 8.00e+00 #text :[string] Booming like an atom bomb [item: 1] -name :[string] verse 2 -no :[float64] 2.00e+00 line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] Oh, Henry was the end of the story [item: 1] #text :[string] Then everything went wrong -no :[float64] 2.00e+00 [item: 2] -no :[float64] 3.00e+00 #text :[string] And we'll return it to its former glory [item: 3] -no :[float64] 4.00e+00 #text :[string] But it just takes so long -mtype :[string] alert -mpriority :[float64] 1.00e+00 DocToJsonIndent, recast==true: { "msg": { "-mpriority": 1, "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": 1 }, { "#text": "It's going to take it, but we'll make it one day", "-no": 2 }, { "#text": "It's going to take a long time", "-no": 3 }, { "#text": "It's going to take it, but we'll make it one day", "-no": 4 } ] }, "verses": { "verse": [ { "-name": "verse 1", "-no": 1, "line": [ { "#text": "Henry was a renegade", "-no": 1 }, { "#text": "Didn't like to play it safe", "-no": 2 }, { "#text": "One component at a time", "-no": 3 }, { "#text": "There's got to be a better way", "-no": 4 }, { "#text": "Oh, people came from miles around", "-no": 5 }, { "#text": "Searching for a steady job", "-no": 6 }, { "#text": "Welcome to the Motor Town", "-no": 7 }, { "#text": "Booming like an atom bomb", "-no": 8 } ] }, { "-name": "verse 2", "-no": 2, "line": [ { "#text": "Oh, Henry was the end of the story", "-no": 1 }, { "#text": "Then everything went wrong", "-no": 2 }, { "#text": "And we'll return it to its former glory", "-no": 3 }, { "#text": "But it just takes so long", "-no": 4 } ] } ] } }, "text": "help me!" } } =================== TestGetValue ... Read doc: barworld Looking for value: entry.vars { "foo": "bar", "foo2": { "hello": "world" } } Looking for value: entry.vars.foo2.hello world Looking with error in path: entry.var verr: no key in map: var DocValue() for tag path entry.vars { "foo": "bar", "foo2": { "hello": "world" } } =================== TestGetValueWithAttr ... Read doc: bar world universe Looking for value: entry.vars { "foo": [ { "#text": "bar", "-item": "1" }, { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } ] } MapValue(): Looking for value: entry.vars.foo item=2 { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } MapValue(): Looking for hello item:4 verr: no key in map: hello DocValue(): Looking for entry.vars.foo.hello item:4 verr: no keys beyond: foo DocValue(): Looking for empty nil { "entry": { "vars": { "foo": [ { "#text": "bar", "-item": "1" }, { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } ] } } } testing recast switch... MapValue(): Looking for value: entry.vars.foo item=2 { "-item": 2, "hello": [ { "#text": "world", "-item": 3 }, { "#text": "universe", "-item": 4 } ] } =================== TestStuff_1 ... val2 val2 val3 doc : tag :[[]interface{}] [item: 0] -item :[string] 1 #text :[string] val2 [item: 1] #text :[string] val2 -item :[string] 2 [item: 2] #text :[string] val3 -item :[string] 2 -instance :[string] 2 DocValue(): tag [ { "#text": "val2", "-item": "1" }, { "#text": "val2", "-item": "2" }, { "#text": "val3", "-instance": "2", "-item": "2" } ] DocValue(): item:2 instance:2 "val3" =================== TestStuff_2 ... val2 val2 val3 tag : -item :[string] 1 #text :[string] val2 DocValue(): tag { "#text": "val2", "-item": "1" } DocValue(): item:2 instance:2 verr: no attribute key:value pair: item:2 =================== TestBulkBuffer ... Bulk Message Processing Tests procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": "1" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "2" }, { "#text": "It's going to take a long time", "-no": "3" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "4" } ] }, "verses": { "verse": [ { "-name": "verse 1", "-no": "1", "line": [ { "#text": "Henry was a renegade", "-no": "1" }, { "#text": "Didn't like to play it safe", "-no": "2" }, { "#text": "One component at a time", "-no": "3" }, { "#text": "There's got to be a better way", "-no": "4" }, { "#text": "Oh, people came from miles around", "-no": "5" }, { "#text": "Searching for a steady job", "-no": "6" }, { "#text": "Welcome to the Motor Town", "-no": "7" }, { "#text": "Booming like an atom bomb", "-no": "8" } ] }, { "-name": "verse 2", "-no": "2", "line": [ { "#text": "Oh, Henry was the end of the story", "-no": "1" }, { "#text": "Then everything went wrong", "-no": "2" }, { "#text": "And we'll return it to its former glory", "-no": "3" }, { "#text": "But it just takes so long", "-no": "4" } ] } ] } }, "text": "help me!" } } procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "verses": { "verse": { "-name": "verse 1", "-no": "1", "line": [ { "#text": "Henry was a renegade", "-no": "1" }, { "#text": "Didn't like to play it safe", "-no": "2" }, { "#text": "One component at a time", "-no": "3" }, { "#text": "There's got to be a better way", "-no": "4" }, { "#text": "Oh, people came from miles around", "-no": "5" }, { "#text": "Searching for a steady job", "-no": "6" }, { "#text": "Welcome to the Motor Town", "-no": "7" }, { "#text": "Booming like an atom bomb", "-no": "8" } ] } } }, "text": "help me!" } } procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": "1" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "2" }, { "#text": "It's going to take a long time", "-no": "3" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "4" } ] } }, "text": "help me!" } } procError err: xml.Decoder.Token() - XML syntax error on line 1: element closed by procError err: xml.Decoder.Token() - XML syntax error on line 1: unexpected end element =================== TestTagAndKey ... TestTagAndKey()
one
two.one two.two
one
two
tag: parts :: len: 2 v: [map[part:[two.one two.two]] map[sections:map[section:[one two]]]] no 'not_a_tag' tag key: section :: len: 2 v: [[one two] [one map[parts:map[part:[two.one two.two]]]]] no 'not_a_key' key ============================ x2jat_test.go =============== TestValuesAtKeyPath ... ValuesAtKeyPath ... doc1#author ss: [doc.books.book.author] vv: [map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]] ValuesAtKeyPath ... doc1#first_name ss: [doc.books.book.author.first_name] vv: [William H. Gaddis Austin Tappan Wright John Hawkes map[first_name:T.E. last_name:Porter]] GetKeyPaths...doc2#book ss: [doc.books.author.book doc.books.author.books.book] vv: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] vv: [map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]]] vv,shortest_path: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] ValuesAtKeyPath ... msg1#pub ss: [msg.pub] vv: [map[pub:test text:This is a long cold winter]] ValuesAtKeyPath ... msg2#pub ss: [msgs.msg.pub] vv: [map[pub:test text:This is a long cold winter] map[pub:test2 text:I hope we have a cool summer, though]] =============== TestValuesAtTagPath ... ValuesAtTagPath ... doc1#author ss: [doc.books.book.author] vv: [map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]] ValuesAtTagPath ... doc1#first_name ss: [doc.books.book.author.first_name] vv: [William H. Gaddis Austin Tappan Wright John Hawkes map[first_name:T.E. last_name:Porter]] ValuesAtTagPath...doc2#book ss: [doc.books.author.book doc.books.author.books.book] vv: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] vv: [map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]]] vv,shortest_path: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] ================================ x2jfindPath_test.go =============== TestPathsForKey ... PathsForKey... doc01#author ss: [doc.books.book.author] PathsForKey... doc01#books ss: [doc.books] PathsForKey...doc02#book ss: [doc.books.author.book doc.books.author.books.book] PathForKeyShortest...doc02#book s: doc.books.author.book =============== TestPathsForTag ... PathsForTag... doc01#author ss: [doc.books.book.author] PathsForTag... doc01#books ss: [doc.books] PathsForTag...doc02#book ss: [doc.books.author.book doc.books.author.books.book] PathForTagShortest...doc02#book s: doc.books.author.book TestValuesFromTagPath() William H. Gaddis The Recognitions One of the great seminal American novels of the 20th century. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. map: doc : books : book :[[]interface{}] [item: 0] author :[string] William H. Gaddis title :[string] The Recognitions review :[string] One of the great seminal American novels of the 20th century. -seq :[string] 1 [item: 1] -seq :[string] 2 author :[string] Austin Tappan Wright title :[string] Islandia review :[string] An example of earlier 20th century American utopian fiction. [item: 2] title :[string] The Beetle Leg review :[string] A lyrical novel about the construction of Ft. Peck Dam in Montana. -seq :[string] 3 author :[string] John Hawkes [item: 3] review :[string] A magical novella. -seq :[string] 4 author : first_name :[string] T.E. last_name :[string] Porter title :[string] King's Day path == doc.books: len(v): 1 0 : map[book:[map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]] path == doc.books.*: len(v): 4 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] 1 : map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] 2 : map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] 3 : map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] path == doc.books.book: len(v): 4 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] 1 : map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] 2 : map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] 3 : map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] doc == doc2 / path == doc.books.book: len(v): 1 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] path == doc.books.book.*: len(v): 12 0 : William H. Gaddis 1 : The Recognitions 2 : One of the great seminal American novels of the 20th century. 3 : Austin Tappan Wright 4 : Islandia 5 : An example of earlier 20th century American utopian fiction. 6 : A lyrical novel about the construction of Ft. Peck Dam in Montana. 7 : John Hawkes 8 : The Beetle Leg 9 : map[first_name:T.E. last_name:Porter] 10 : King's Day 11 : A magical novella. doc == doc2 / path == doc.books.book.*: len(v): 3 0 : William H. Gaddis 1 : The Recognitions 2 : One of the great seminal American novels of the 20th century. path == doc.books.*.author: len(v): 4 0 : William H. Gaddis 1 : Austin Tappan Wright 2 : John Hawkes 3 : map[first_name:T.E. last_name:Porter] path == doc.*.*.author: len(v): 4 0 : William H. Gaddis 1 : Austin Tappan Wright 2 : John Hawkes 3 : map[first_name:T.E. last_name:Porter] path == doc.*.*.title: len(v): 4 0 : The Recognitions 1 : Islandia 2 : The Beetle Leg 3 : King's Day path == doc.*.*.*: len(v): 12 0 : William H. Gaddis 1 : The Recognitions 2 : One of the great seminal American novels of the 20th century. 3 : Austin Tappan Wright 4 : Islandia 5 : An example of earlier 20th century American utopian fiction. 6 : John Hawkes 7 : The Beetle Leg 8 : A lyrical novel about the construction of Ft. Peck Dam in Montana. 9 : map[first_name:T.E. last_name:Porter] 10 : King's Day 11 : A magical novella. path == doc.*.*.*.*: len(v): 2 0 : T.E. 1 : Porter TestValuesFromTagPath2(), iteration: 0 no default:text default:word map: data : netid : disable :[string] no text1 :[string] default:text word1 :[string] default:word path == data.*: len(v): 1 0 : map[disable:no text1:default:text word1:default:word] disable : no text1 : default:text word1 : default:word path == data.*.*: len(v): 3 0 : no 1 : default:text 2 : default:word TestValuesFromTagPath2(), iteration: 1 yes default:text default:word map: data : idnet : disable :[string] yes text1 :[string] default:text word1 :[string] default:word path == data.*: len(v): 1 0 : map[disable:yes text1:default:text word1:default:word] disable : yes text1 : default:text word1 : default:word path == data.*.*: len(v): 3 0 : yes 1 : default:text 2 : default:word Unmarshal test ... *map[string]interface{}, *string m: map[doc:map[name:Mayer Hawthorne song:map[title:A Long Time verse:map[-no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2]]]]]] s: {"doc":{"name":"Mayer Hawthorne","song":{"title":"A Long Time","verse":{"-no":"1","line":[{"#text":"Henry was a renegade","-no":"1"},{"#text":"Didn't like to play it safe","-no":"2"}]}}}} Unmarshal test ... struct: clbanning
unknown
myInfo: {XMLName:{Space: Local:info} Name:clbanning Address:unknown} TestMapValue of doc.song.verse w/ len(attrs) == 0. doc: Mayer Hawthorne A Long Time Henry was a renegade Didn't like to play it safe result: map[-no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2]]] PASS ok github.com/clbanning/mxj/x2j-wrapper 0.017s github.com/clbanning/mxj/x2j-wrapper TestGoofy ... MapToDoc: map[byteVal:[116 104 101 32 97 105 100 32 111 102 32 116 104 101 105 114 32 99 111 117 110 116 114 121] goofyVal:0xc0000904e0 nilVal: xml:map[tag:map[-bool:true -one:1 -pi:3.1415962535] tagJR:map[-key:value]]] v: {"byteVal":"dGhlIGFpZCBvZiB0aGVpciBjb3VudHJ5","goofyVal":{"S":"Now is the time for","Sp":"all good men to come to"},"nilVal":null,"xml":{"tag":{"-bool":"true","-one":"1","-pi":"3.1415962535"},"tagJR":{"-key":"value"}}} TestGoofier ... MapToDoc: map[byteVal:[116 104 101 32 97 105 100 32 111 102 32 116 104 101 105 114 32 99 111 117 110 116 114 121] goofierVal:0xc000093170 goofyVal:0xc0000904e0 nilVal: xml:map[tag:map[-bool:true -one:1 -pi:3.1415962535] tagJR:map[-key:value]]] v: {"byteVal":"dGhlIGFpZCBvZiB0aGVpciBjb3VudHJ5","goofierVal":{"G":{"S":"Now is the time for","Sp":"all good men to come to"},"B":"dGhlIHRyZWUgb2YgZnJlZWRvbSBtdXN0IHBlcmlvZGljYWxseSBiZQ==","N":null},"goofyVal":{"S":"Now is the time for","Sp":"all good men to come to"},"nilVal":null,"xml":{"tag":{"-bool":"true","-one":"1","-pi":"3.1415962535"},"tagJR":{"-key":"value"}}} ToMap - Read doc: barworld entry : vars : foo :[string] bar foo2 : hello :[string] world ToJson - Read doc: barworld json: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ToJsonIndent - Read doc: barworld json: { "entry": { "vars": { "foo": "bar", "foo2": { "hello": "world" } } } } BulkParser (with error) - Read doc: barworldanbarworld phandler m: map[entry:map[vars:map[foo:bar foo2:map[hello:world]]]] ehandler err: xml.Decoder.Token() - XML syntax error on line 1: element closed by phandler m: map[entry:map[vars:map[foo:bar foo2:map[hello:world]]]] BulkParser (with error) - Read doc: barworldanbarworld phandlerj s: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ehandler err: xml.Decoder.Token() - XML syntax error on line 1: element closed by phandlerj s: {"entry":{"vars":{"foo":"bar","foo2":{"hello":"world"}}}} ================================ x2j_test.go ... =================== TestX2j ... XML doc: help me! Henry was a renegade Didn't like to play it safe One component at a time There's got to be a better way Oh, people came from miles around Searching for a steady job Welcome to the Motor Town Booming like an atom bomb Oh, Henry was the end of the story Then everything went wrong And we'll return it to its former glory But it just takes so long It's going to take a long time It's going to take it, but we'll make it one day It's going to take a long time It's going to take it, but we'll make it one day DocToMap(), recast==true: msg : -mpriority :[float64] 1.00e+00 text :[string] help me! song : -title :[string] A Long Time -author :[string] Mayer Hawthorne verses : verse :[[]interface{}] [item: 0] line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] Henry was a renegade [item: 1] -no :[float64] 2.00e+00 #text :[string] Didn't like to play it safe [item: 2] -no :[float64] 3.00e+00 #text :[string] One component at a time [item: 3] #text :[string] There's got to be a better way -no :[float64] 4.00e+00 [item: 4] -no :[float64] 5.00e+00 #text :[string] Oh, people came from miles around [item: 5] -no :[float64] 6.00e+00 #text :[string] Searching for a steady job [item: 6] -no :[float64] 7.00e+00 #text :[string] Welcome to the Motor Town [item: 7] #text :[string] Booming like an atom bomb -no :[float64] 8.00e+00 -name :[string] verse 1 -no :[float64] 1.00e+00 [item: 1] -name :[string] verse 2 -no :[float64] 2.00e+00 line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] Oh, Henry was the end of the story [item: 1] -no :[float64] 2.00e+00 #text :[string] Then everything went wrong [item: 2] -no :[float64] 3.00e+00 #text :[string] And we'll return it to its former glory [item: 3] -no :[float64] 4.00e+00 #text :[string] But it just takes so long chorus : line :[[]interface{}] [item: 0] -no :[float64] 1.00e+00 #text :[string] It's going to take a long time [item: 1] -no :[float64] 2.00e+00 #text :[string] It's going to take it, but we'll make it one day [item: 2] -no :[float64] 3.00e+00 #text :[string] It's going to take a long time [item: 3] -no :[float64] 4.00e+00 #text :[string] It's going to take it, but we'll make it one day -mtype :[string] alert DocToJsonIndent, recast==true: { "msg": { "-mpriority": 1, "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": 1 }, { "#text": "It's going to take it, but we'll make it one day", "-no": 2 }, { "#text": "It's going to take a long time", "-no": 3 }, { "#text": "It's going to take it, but we'll make it one day", "-no": 4 } ] }, "verses": { "verse": [ { "-name": "verse 1", "-no": 1, "line": [ { "#text": "Henry was a renegade", "-no": 1 }, { "#text": "Didn't like to play it safe", "-no": 2 }, { "#text": "One component at a time", "-no": 3 }, { "#text": "There's got to be a better way", "-no": 4 }, { "#text": "Oh, people came from miles around", "-no": 5 }, { "#text": "Searching for a steady job", "-no": 6 }, { "#text": "Welcome to the Motor Town", "-no": 7 }, { "#text": "Booming like an atom bomb", "-no": 8 } ] }, { "-name": "verse 2", "-no": 2, "line": [ { "#text": "Oh, Henry was the end of the story", "-no": 1 }, { "#text": "Then everything went wrong", "-no": 2 }, { "#text": "And we'll return it to its former glory", "-no": 3 }, { "#text": "But it just takes so long", "-no": 4 } ] } ] } }, "text": "help me!" } } =================== TestGetValue ... Read doc: barworld Looking for value: entry.vars { "foo": "bar", "foo2": { "hello": "world" } } Looking for value: entry.vars.foo2.hello world Looking with error in path: entry.var verr: no key in map: var DocValue() for tag path entry.vars { "foo": "bar", "foo2": { "hello": "world" } } =================== TestGetValueWithAttr ... Read doc: bar world universe Looking for value: entry.vars { "foo": [ { "#text": "bar", "-item": "1" }, { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } ] } MapValue(): Looking for value: entry.vars.foo item=2 { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } MapValue(): Looking for hello item:4 verr: no key in map: hello DocValue(): Looking for entry.vars.foo.hello item:4 verr: no keys beyond: foo DocValue(): Looking for empty nil { "entry": { "vars": { "foo": [ { "#text": "bar", "-item": "1" }, { "-item": "2", "hello": [ { "#text": "world", "-item": "3" }, { "#text": "universe", "-item": "4" } ] } ] } } } testing recast switch... MapValue(): Looking for value: entry.vars.foo item=2 { "-item": 2, "hello": [ { "#text": "world", "-item": 3 }, { "#text": "universe", "-item": 4 } ] } =================== TestStuff_1 ... val2 val2 val3 doc : tag :[[]interface{}] [item: 0] -item :[string] 1 #text :[string] val2 [item: 1] -item :[string] 2 #text :[string] val2 [item: 2] -item :[string] 2 -instance :[string] 2 #text :[string] val3 DocValue(): tag [ { "#text": "val2", "-item": "1" }, { "#text": "val2", "-item": "2" }, { "#text": "val3", "-instance": "2", "-item": "2" } ] DocValue(): item:2 instance:2 "val3" =================== TestStuff_2 ... val2 val2 val3 tag : #text :[string] val2 -item :[string] 1 DocValue(): tag { "#text": "val2", "-item": "1" } DocValue(): item:2 instance:2 verr: no attribute key:value pair: item:2 =================== TestBulkBuffer ... Bulk Message Processing Tests procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": "1" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "2" }, { "#text": "It's going to take a long time", "-no": "3" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "4" } ] }, "verses": { "verse": [ { "-name": "verse 1", "-no": "1", "line": [ { "#text": "Henry was a renegade", "-no": "1" }, { "#text": "Didn't like to play it safe", "-no": "2" }, { "#text": "One component at a time", "-no": "3" }, { "#text": "There's got to be a better way", "-no": "4" }, { "#text": "Oh, people came from miles around", "-no": "5" }, { "#text": "Searching for a steady job", "-no": "6" }, { "#text": "Welcome to the Motor Town", "-no": "7" }, { "#text": "Booming like an atom bomb", "-no": "8" } ] }, { "-name": "verse 2", "-no": "2", "line": [ { "#text": "Oh, Henry was the end of the story", "-no": "1" }, { "#text": "Then everything went wrong", "-no": "2" }, { "#text": "And we'll return it to its former glory", "-no": "3" }, { "#text": "But it just takes so long", "-no": "4" } ] } ] } }, "text": "help me!" } } procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "verses": { "verse": { "-name": "verse 1", "-no": "1", "line": [ { "#text": "Henry was a renegade", "-no": "1" }, { "#text": "Didn't like to play it safe", "-no": "2" }, { "#text": "One component at a time", "-no": "3" }, { "#text": "There's got to be a better way", "-no": "4" }, { "#text": "Oh, people came from miles around", "-no": "5" }, { "#text": "Searching for a steady job", "-no": "6" }, { "#text": "Welcome to the Motor Town", "-no": "7" }, { "#text": "Booming like an atom bomb", "-no": "8" } ] } } }, "text": "help me!" } } procMap: { "msg": { "-mpriority": "1", "-mtype": "alert", "song": { "-author": "Mayer Hawthorne", "-title": "A Long Time", "chorus": { "line": [ { "#text": "It's going to take a long time", "-no": "1" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "2" }, { "#text": "It's going to take a long time", "-no": "3" }, { "#text": "It's going to take it, but we'll make it one day", "-no": "4" } ] } }, "text": "help me!" } } procError err: xml.Decoder.Token() - XML syntax error on line 1: element closed by procError err: xml.Decoder.Token() - XML syntax error on line 1: unexpected end element =================== TestTagAndKey ... TestTagAndKey()
one
two.one two.two
one
two
tag: parts :: len: 2 v: [map[part:[two.one two.two]] map[sections:map[section:[one two]]]] no 'not_a_tag' tag key: section :: len: 2 v: [[one map[parts:map[part:[two.one two.two]]]] [one two]] no 'not_a_key' key ============================ x2jat_test.go =============== TestValuesAtKeyPath ... ValuesAtKeyPath ... doc1#author ss: [doc.books.book.author] vv: [map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]] ValuesAtKeyPath ... doc1#first_name ss: [doc.books.book.author.first_name] vv: [William H. Gaddis Austin Tappan Wright John Hawkes map[first_name:T.E. last_name:Porter]] GetKeyPaths...doc2#book ss: [doc.books.author.book doc.books.author.books.book] vv: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] vv: [map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]]] vv,shortest_path: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] ValuesAtKeyPath ... msg1#pub ss: [msg.pub] vv: [map[pub:test text:This is a long cold winter]] ValuesAtKeyPath ... msg2#pub ss: [msgs.msg.pub] vv: [map[pub:test text:This is a long cold winter] map[pub:test2 text:I hope we have a cool summer, though]] =============== TestValuesAtTagPath ... ValuesAtTagPath ... doc1#author ss: [doc.books.book.author] vv: [map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]] ValuesAtTagPath ... doc1#first_name ss: [doc.books.book.author.first_name] vv: [William H. Gaddis Austin Tappan Wright John Hawkes map[first_name:T.E. last_name:Porter]] ValuesAtTagPath...doc2#book ss: [doc.books.author.book doc.books.author.books.book] vv: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] vv: [map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]]] vv,shortest_path: [map[book:[map[-seq:1 review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[review:Won the National Book Award title:JR]] name:William H. Gaddis] map[books:map[book:[map[title:The Beetle Leg] map[title:The Blood Oranges]]] name:John Hawkes]] ================================ x2jfindPath_test.go =============== TestPathsForKey ... PathsForKey... doc01#author ss: [doc.books.book.author] PathsForKey... doc01#books ss: [doc.books] PathsForKey...doc02#book ss: [doc.books.author.book doc.books.author.books.book] PathForKeyShortest...doc02#book s: doc.books.author.book =============== TestPathsForTag ... PathsForTag... doc01#author ss: [doc.books.book.author] PathsForTag... doc01#books ss: [doc.books] PathsForTag...doc02#book ss: [doc.books.author.book doc.books.author.books.book] PathForTagShortest...doc02#book s: doc.books.author.book TestValuesFromTagPath() William H. Gaddis The Recognitions One of the great seminal American novels of the 20th century. Austin Tappan Wright Islandia An example of earlier 20th century American utopian fiction. John Hawkes The Beetle Leg A lyrical novel about the construction of Ft. Peck Dam in Montana. T.E. Porter King's Day A magical novella. map: doc : books : book :[[]interface{}] [item: 0] title :[string] The Recognitions review :[string] One of the great seminal American novels of the 20th century. -seq :[string] 1 author :[string] William H. Gaddis [item: 1] title :[string] Islandia review :[string] An example of earlier 20th century American utopian fiction. -seq :[string] 2 author :[string] Austin Tappan Wright [item: 2] -seq :[string] 3 author :[string] John Hawkes title :[string] The Beetle Leg review :[string] A lyrical novel about the construction of Ft. Peck Dam in Montana. [item: 3] author : last_name :[string] Porter first_name :[string] T.E. title :[string] King's Day review :[string] A magical novella. -seq :[string] 4 path == doc.books: len(v): 1 0 : map[book:[map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day]]] path == doc.books.*: len(v): 4 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] 1 : map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] 2 : map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] 3 : map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] path == doc.books.book: len(v): 4 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] 1 : map[-seq:2 author:Austin Tappan Wright review:An example of earlier 20th century American utopian fiction. title:Islandia] 2 : map[-seq:3 author:John Hawkes review:A lyrical novel about the construction of Ft. Peck Dam in Montana. title:The Beetle Leg] 3 : map[-seq:4 author:map[first_name:T.E. last_name:Porter] review:A magical novella. title:King's Day] doc == doc2 / path == doc.books.book: len(v): 1 0 : map[-seq:1 author:William H. Gaddis review:One of the great seminal American novels of the 20th century. title:The Recognitions] path == doc.books.book.*: len(v): 12 0 : William H. Gaddis 1 : The Recognitions 2 : One of the great seminal American novels of the 20th century. 3 : Austin Tappan Wright 4 : Islandia 5 : An example of earlier 20th century American utopian fiction. 6 : John Hawkes 7 : The Beetle Leg 8 : A lyrical novel about the construction of Ft. Peck Dam in Montana. 9 : map[first_name:T.E. last_name:Porter] 10 : King's Day 11 : A magical novella. doc == doc2 / path == doc.books.book.*: len(v): 3 0 : William H. Gaddis 1 : The Recognitions 2 : One of the great seminal American novels of the 20th century. path == doc.books.*.author: len(v): 4 0 : William H. Gaddis 1 : Austin Tappan Wright 2 : John Hawkes 3 : map[first_name:T.E. last_name:Porter] path == doc.*.*.author: len(v): 4 0 : William H. Gaddis 1 : Austin Tappan Wright 2 : John Hawkes 3 : map[first_name:T.E. last_name:Porter] path == doc.*.*.title: len(v): 4 0 : The Recognitions 1 : Islandia 2 : The Beetle Leg 3 : King's Day path == doc.*.*.*: len(v): 12 0 : The Recognitions 1 : One of the great seminal American novels of the 20th century. 2 : William H. Gaddis 3 : Austin Tappan Wright 4 : Islandia 5 : An example of earlier 20th century American utopian fiction. 6 : A lyrical novel about the construction of Ft. Peck Dam in Montana. 7 : John Hawkes 8 : The Beetle Leg 9 : King's Day 10 : A magical novella. 11 : map[first_name:T.E. last_name:Porter] path == doc.*.*.*.*: len(v): 2 0 : T.E. 1 : Porter TestValuesFromTagPath2(), iteration: 0 no default:text default:word map: data : netid : disable :[string] no text1 :[string] default:text word1 :[string] default:word path == data.*: len(v): 1 0 : map[disable:no text1:default:text word1:default:word] disable : no text1 : default:text word1 : default:word path == data.*.*: len(v): 3 0 : default:text 1 : default:word 2 : no TestValuesFromTagPath2(), iteration: 1 yes default:text default:word map: data : idnet : disable :[string] yes text1 :[string] default:text word1 :[string] default:word path == data.*: len(v): 1 0 : map[disable:yes text1:default:text word1:default:word] disable : yes text1 : default:text word1 : default:word path == data.*.*: len(v): 3 0 : yes 1 : default:text 2 : default:word Unmarshal test ... *map[string]interface{}, *string m: map[doc:map[name:Mayer Hawthorne song:map[title:A Long Time verse:map[-no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2]]]]]] s: {"doc":{"name":"Mayer Hawthorne","song":{"title":"A Long Time","verse":{"-no":"1","line":[{"#text":"Henry was a renegade","-no":"1"},{"#text":"Didn't like to play it safe","-no":"2"}]}}}} Unmarshal test ... struct: clbanning
unknown
myInfo: {XMLName:{Space: Local:info} Name:clbanning Address:unknown} TestMapValue of doc.song.verse w/ len(attrs) == 0. doc: Mayer Hawthorne A Long Time Henry was a renegade Didn't like to play it safe result: map[-no:1 line:[map[#text:Henry was a renegade -no:1] map[#text:Didn't like to play it safe -no:2]]] PASS ok github.com/clbanning/mxj/x2j-wrapper 0.018s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: golang-github-clbanning-mxj-devel-2.5.5-7.fc41.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.RCrQzt + umask 022 + cd /builddir/build/BUILD + cd mxj-2.5.5 + DOCDIR=/builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/doc/golang-github-clbanning-mxj-devel + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/doc/golang-github-clbanning-mxj-devel + cp -pr /builddir/build/BUILD/mxj-2.5.5/examples /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/doc/golang-github-clbanning-mxj-devel + cp -pr /builddir/build/BUILD/mxj-2.5.5/readme.md /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/doc/golang-github-clbanning-mxj-devel + cp -pr /builddir/build/BUILD/mxj-2.5.5/x2j-wrapper/README /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/doc/golang-github-clbanning-mxj-devel + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.7hBorM + umask 022 + cd /builddir/build/BUILD + cd mxj-2.5.5 + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/licenses/golang-github-clbanning-mxj-devel + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/licenses/golang-github-clbanning-mxj-devel + cp -pr /builddir/build/BUILD/mxj-2.5.5/LICENSE /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/licenses/golang-github-clbanning-mxj-devel + cp -pr /builddir/build/BUILD/mxj-2.5.5/x2j-wrapper/LICENSE /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64/usr/share/licenses/golang-github-clbanning-mxj-devel + RPM_EC=0 ++ jobs -p + exit 0 warning: File listed twice: /usr/share/licenses/golang-github-clbanning-mxj-devel/LICENSE grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : grep: warning: stray \ before : Provides: golang(github.com/clbanning/mxj) = 2.5.5-7.fc41 golang(github.com/clbanning/mxj/j2x) = 2.5.5-7.fc41 golang(github.com/clbanning/mxj/x2j) = 2.5.5-7.fc41 golang(github.com/clbanning/mxj/x2j-wrapper) = 2.5.5-7.fc41 golang-github-clbanning-mxj-devel = 2.5.5-7.fc41 golang-ipath(github.com/clbanning/mxj) = 2.5.5-7.fc41 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: go-filesystem Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 Wrote: /builddir/build/RPMS/golang-github-clbanning-mxj-devel-2.5.5-7.fc41.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Tja4cu + umask 022 + cd /builddir/build/BUILD + cd mxj-2.5.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/golang-github-clbanning-mxj-2.5.5-7.fc41.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Ih6y9e + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/mxj-2.5.5-SPECPARTS + rm -rf mxj-2.5.5 mxj-2.5.5.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: File listed twice: /usr/share/licenses/golang-github-clbanning-mxj-devel/LICENSE Finish: rpmbuild golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm Finish: build phase for golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1709187646.092446/root/var/log/dnf5.log INFO: Done(/var/lib/copr-rpmbuild/results/golang-github-clbanning-mxj-2.5.5-7.fc41.src.rpm) Config(child) 0 minutes 27 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running RPMResults tool Package info: { "packages": [ { "name": "golang-github-clbanning-mxj", "epoch": null, "version": "2.5.5", "release": "7.fc41", "arch": "src" }, { "name": "golang-github-clbanning-mxj-devel", "epoch": null, "version": "2.5.5", "release": "7.fc41", "arch": "noarch" } ] } RPMResults finished