Bug 1047260 - Don't delete jsoncheck from the package
Summary: Don't delete jsoncheck from the package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ShellCheck
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dridi Boukelmoune
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-30 08:18 UTC by Rick Elrod
Modified: 2014-02-28 18:38 UTC (History)
2 users (show)

Fixed In Version: ShellCheck-0.3.1-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-28 18:36:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rick Elrod 2013-12-30 08:18:09 UTC
Description of problem:

In the current spec file, you do "rm %{buildroot}%{_bindir}/jsoncheck", but the included jsoncheck is actually useful.

The output of `shellcheck` is not machine-readable. `jsoncheck` allows for tooling integration (e.g. it is easy to add shellcheck to Emacs or Vim if jsoncheck exists).


Version-Release number of selected component (if applicable): 0.2.0-3

How reproducible: Always


Actual results: There is no `jsoncheck` binary installed.


Expected results: Have /usr/bin/jsoncheck exist, when the package is installed.


Additional info:

Comment 1 Rick Elrod 2013-12-30 08:20:09 UTC
As an example of tooling integration that requires jsoncheck:

https://github.com/scrooloose/syntastic/commit/2106176#diff-e4c81f050f0024b4758939941f6f57e2R12

Comment 2 Dridi Boukelmoune 2013-12-30 11:02:24 UTC
Hi,

I'm sorry I've broken the syntastic integration (trust me I love syntastic) but I have removed jsoncheck for a couple reasons:

1) it doesn't exist in the current master branch

It means that I could only upgrade shellcheck with a new fedora release, because the removal of jsoncheck would be a breaking change.

With the next version you'll simply do:
shellckeck -f json some_script

And it will come with a man page :)

2) jsoncheck is misleading to me

It sounds more like a tool that would check some json, and it doesn't feel legitimate in a "shell checking" package to me.

I see several solutions, assuming the next shellcheck will hopefully come before f21:
- press upstream to get a release soon (there are other features I also want)
- backport the "-f json" behavior
- restore jsoncheck, and postpone the next update to f21
- restore jsoncheck, and maintain a substitute script with the next updates (and remove it in f21)

In any case, I'd need some coordination with the syntastic maintainer.

What do you think ?

Comment 3 Rick Elrod 2013-12-30 12:14:01 UTC
Ah ha, I wasn't aware that they got merged into one tool. Ok, that's fine. :)

I vote for solution #1, let's see if we can bug upstream to release a new version ( And maybe push to Hackage, too. There's a bug upstream about that, but no response yet. :( ). Does that sound reasonable?

Comment 4 Dridi Boukelmoune 2013-12-30 12:25:52 UTC
Sounds good to me :)

I'll go check for a roadmap of some sort first, and then ask upstream what's holding them from releasing a new milestone.

Comment 5 Dridi Boukelmoune 2014-02-04 23:40:13 UTC
There's a new build for rawhide, ShellCheck-0.3.1:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6492554

Before pushing it to f19+, I just want to make sure it also solves bug 1052117.

Comment 6 Fedora Update System 2014-02-10 07:31:34 UTC
ShellCheck-0.3.1-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ShellCheck-0.3.1-3.fc19

Comment 7 Fedora Update System 2014-02-10 07:31:44 UTC
ShellCheck-0.3.1-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ShellCheck-0.3.1-3.fc20

Comment 8 Fedora Update System 2014-02-11 23:03:55 UTC
Package ShellCheck-0.3.1-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ShellCheck-0.3.1-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2258/ShellCheck-0.3.1-3.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-02-28 18:36:44 UTC
ShellCheck-0.3.1-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-02-28 18:38:40 UTC
ShellCheck-0.3.1-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.