Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/hadolint/language-docker
Haskell Dockerfile parser, pretty-printer and EDSL
https://github.com/hadolint/language-docker
a62ce753efb020eb39dedb3aa5834d93876be0f6 authored over 1 year ago
83bc249f6bee707757746ecd61700551feb01a10 authored almost 2 years ago
24f7886b1b07a32b50b82497497a0544d43f1a45 authored almost 2 years ago
fixes https://github.com/hadolint/hadolint/issues/893
e29aa11340c2c1e6e66588ef84713983f1f3f8ff authored almost 2 years ago
Parse fractional numbers as arguments to flags for the `HEALTHCHECK`
instruction.
The `HEALTHCH...
d675b4ed957cec6263e0607040c1012aef1fdd9e authored almost 2 years agofix: heredocs in lines with escaped newlines
34e9ddfa0b662d603ae9fc43f6ce78a6ce2a8447 authored almost 2 years ago
Fix parsing error with heredocs within command chains with escaped
newlines.
When chaining comm...
87bfdfa66ad9feedd441dbc6f55bee9c36f01c09 authored almost 2 years agoced8a99e8548dda732fe3a13904bd69ae21e1c6b authored about 2 years ago
ast/parser: vairables in port ranges
e51ca63f44dbdc7d46a5beac78ad5531b3d9021d authored about 2 years ago
- Fix parser being unable to parse port ranges when the limits are
expressed with variables
- ...
syntax: add support for `--link`
79e9b7db67f818150aa7e213cb58b9dd71331ec3 authored almost 3 years ago
- Add support for parsing `--link` flag in `COPY` and `ADD`
instructions.
With Dockerfile syn...
e129094a3eb111342459426dd2249c5831981679 authored almost 3 years agoparser: fix escaped sequences in strings
18cf761d89df346b84199d68832f77af3f8bb1b3 authored almost 3 years ago
- Reuse existing parsers for handling strings with escaped sequences by
moving them form Pairs...
f7fd2aa72d2baf3fbe9d556bea91a1d8d31687f4 authored almost 3 years ago
parser: fix parsing broken strings in exec format
b1f303d58e1b26cd3fa8b68f24142301a61e352e authored almost 3 years ago
- Fix parsing of long strings broken into multiple lines in the
exec/JSON format of CMD, RUN a...
7a2616f72f33f1c955f4fc384551f224b341e047 authored almost 3 years ago
heredoc parsing: fix overzealous parsing
8e6f29759cf8d75fec87ec3c090c1d42ce67734f authored almost 3 years ago
- Fix overzealous parsing of a `RUN` instruction in case later on a
heredoc follows
A `RUN` i...
a25168233431b1e689c0b7aa880e2fbba9ecc761 authored about 3 years ago09943a2f0e05443a21fec3a8b38ebe7832be6358 authored about 3 years ago
parser: Allow buildkit --mount arguments ro/rw be explicit
fcdcfde8e8ced1834311170dc0f11c9f949cc925 authored about 3 years ago
Allow explicitly setting `ro=true` and similarly for `rw` and `false`
and all permutations there...
bugfix: handle heredocs followed by EOF
e0e26d1cb0ebdc7e46ec0a19995456bb97c46f11 authored about 3 years ago
Even though POSIX clearly states that the delimiter should be on its
own line, followed by a new...
packging: add extra sources
57c2db87dd5ca14002a52a666b2d00485cc3268d authored about 3 years ago
- Add all test fixtures to the package.yaml so the hackage packge is
generated correctly.
fix...
83e1513258ddb980678cf8378e4692b057ad432b authored about 3 years agosyntax: handle multiple `RUN` mount flags
8f2d1c072e1a4be9ce7a90c9700da21c694a332e authored about 3 years agoAdd capabilities to handle multiple `RUN` mount flags.
Sometimes a `RUN` instruction can have m...
5d42c1be8a76b1381d4f6eaf01f11b28f21a358f authored over 3 years ago6996136b64a92dd38eb9b7d99fa8f4626b64f70d authored over 3 years ago
parser: parser uid/gid in `RUN --mount` as string
730c75236b1985ed422cab00a184ef57b7698a88 authored over 3 years agofile parser: respect byte order marks
8d1d5eb3f199189b8b4d954f9a9561508223dc24 authored over 3 years ago
Add detection and correct handling of byte order marks (BOMs) to file
parsing. Can handle both b...
Parser the uid/gid options in the `--mount` option to the `RUN`
instruction as string. This allo...
bugfix: heredoc termination, unicode whitespaces
a1e8ebf778f7b7999711e6c09ff537a0c2594345 authored over 3 years ago
- Simplyfy heredoc marker detection by replacing the use of
`L.charLiteral` with `anySingle` a...
heredocs: fix parsing bug with line continuations
ed05837079897a79d3b1b62001b046dde96714f3 authored over 3 years ago
Fix parsing error on line continuation.
The `Text.Megaparsec.Lexer.charLiteral` parser will not ...
parser: support heredoc format
6877044849d11927c4b69e6f97664315a65b6047 authored over 3 years ago
- Remove usage of partial function `last` in parsing of the `COPY`
instruction
- Fix typo in c...
- Add support for file redirects in heredocs
- Add support for intermixing regular commands and ...
- Add support for quoted markers
- Add support for dash before maker
These variants of the here...
eaabfbdb51bbb805344df81f4b3bcbc01eea63da authored over 3 years ago
- Add support for (multiple) heredocs in COPY statement
- Separate unit tests for COPY into thei...
- Add heredoc format support for everything that parses arguments (e.g.
RUN).
- Separate out u...
workflow: Add linting and unit testing
4412739e54acb48700e5f94e34a29269c61f184a authored over 3 years ago
- Add linting workflow utilizing `hlint`
- Add unit test workflow utilizing `cabal test`
3ca1b2d5732cd4f49e17908af88e94b23c1bfc7f authored over 3 years ago
feature: report invalid protocol
9c436c617c8d8f419309b7b96363455991829325 authored over 3 years ago
Propagate the correct error message `invalid protocol` upwards in case
parsing an expose express...
e35d1f3a2d5b247ba64663540a8205fe08a64100 authored over 3 years ago
0ed4126d0f467e87459ed9d5ab936d6794364ba1 authored over 3 years ago
stack: add Dockerfiles to `package.yaml`
e504c78102f0e6121bf900274e85d327ded820f4 authored over 3 years ago
List all Dockerfiles for tests in `package.yaml` and
`language-docker.cabal`.
- fixes: https://...
e1ecb96be7aaf3bc9dede9c99403e8e3961ffab1 authored over 3 years agoparser: handle parser directives
7e4bceea394c83ee1fec90263db86fd0e312c48a authored over 3 years ago
- Add escape character detection logic to the pretty printer
- Replace the escape character on d...
- Add handling for parser directives (pragmas) to the parser:
`escape`, `index`
- Split off te...
7e8e9787ba9333739e332d97694cc2e08c810149 authored almost 4 years ago
syntax: add support for --chmod flags #609
f92423bcecc5672a8124e62dffce55dcff9b0dc6 authored almost 4 years ago
- add support for the --chmod flag for `ADD`
- add support for the --chmod flag for `COPY`
- add...
bdde169d23cc8af46b18f8c7f02d401cca0568bf authored almost 4 years ago
parser: fix experimental option `required`
ae6bd8acc024f41bbf0ca50d78416d4f927cb3b4 authored almost 4 years ago
- Remove unused compiler pragma
- Add capability to deal with explicit boolean values for experi...
5992510ab54675db765658cf9a2f6417dc8240a5 authored almost 4 years ago
parser: Handle `ARG` instructions without default
241d4cfe313007f1c6b009e8d871e683032a3748 authored almost 4 years ago
Improve the parser by correctly handling `ARG` instructions that do not
have a default, but do h...
354467bb0cf6bcfe80a4b7c1b6f3be1cfc2d3d63 authored over 4 years ago
Fix bugs
00c16bb5be280301af7424dfa7c1bc7753001634 authored over 4 years ago4abefa443aa07ca199e5704ce8d2dfa258d50111 authored over 4 years ago
ab9f4b0de6b5dce22a23a3509d2cbe687b36a504 authored over 4 years ago
Parse dst modifier correctly
52fa6254d5c54da692cca2e398bf9df5ae78add0 authored over 4 years ago8680a37f2a689c32d4adb50a9a972af00b7b1f7f authored over 4 years ago
I had made a mistake and was parsing `dest` insted of `dst`
0867b58de03f541b3cdf0e1700678362342a2c42 authored over 4 years agoFixed parsing of --mount=type=cache
f6654e181f8b04c23f00d385291d165a42cf4c0b authored over 4 years ago
I had misunderstood that the sharing argument was required, but it is
not.
d033afd853b7a585a9b0e05453c29385254a3cc0 authored over 4 years ago
Parser rewrite
9983e866deee0e8610bd80294ff1ebcd8a7ece21 authored over 4 years agob16e62df236309961b7a6cf84c972f25e38cadb4 authored over 4 years ago
Since this is a pure library, nothing wiill be found on OSX of interest
4ed3264cbbfb125392c5b70191a3a4e9bbcac353 authored over 4 years ago79939add6c77640d9717febe286dee3b533b55ed authored over 4 years ago
05c1b8c39c97fa1041f1604ba26476b267e136fa authored over 4 years ago
It will live in another repo.
We do this to make it easier for hadolint to be cross-compiled to ...
92111ce881ed25c28bcdf0eaace79d2055b84e2e authored over 4 years ago
94f0dfe1e00e1a07357db9e56f90828a835092c7 authored over 4 years ago
Using ormolu in those file for formatting instead of hindent
cad42836d8773276b6ab485d075a1b1a94094fe0 authored over 4 years ago943378ad9b2cd1fbf00640de94705d106a53b670 authored over 4 years ago
added a new dependency to make life easier here
b39760c728bc61bb5e5439055641897024b7884f authored over 4 years agoAdd support for escaped quoting
8858f5bf29fe556647d2bbb74b052176b4199756 authored over 4 years agoa06ca3b370f98e35801772eb88a19c4ecdee205d authored over 4 years ago
fb05a80c0b80dac57fea3b3c8a86c4b7438aea75 authored over 4 years ago
ef7ef31f298dae1af7bc30f8604b5ed3651b488c authored over 4 years ago
2f84322e4da1800957793de859cb958a13f8d3fd authored over 4 years ago
Allow building with GHC 8.10
d17d1fb819b79e9733b6981622eb2aa71e6532a7 authored almost 5 years agoFixes #51.
ed4f222ae9d7305889af4197997bb2b81a51efdb authored almost 5 years ago03cf47525b8935e5448c73b11e0d637a7ca5e7d4 authored almost 5 years ago
ad12106d8553bba15c165d19a6a93de55fd2d785 authored almost 5 years ago
f56c2e73cb491a11b714ef2a474fd7e96128cf1e authored almost 5 years ago
The newline breaks logic is now in the parser, which will help retain
more precise information o...
GHC 8.8 only
2035c186d61d0e45c69a89df552701cd3d174b67 authored almost 5 years ago1ff06f938cae23ceafed6fabea0ec9c0b3e1fc9c authored almost 5 years ago
47693c067cd99b6a3f66bb2a35cf9709a1c0aadb authored almost 5 years ago