Hi, I am trying to deploy loki in an isolated environment and for that I need to build loki before doing so (vm based environment), because the regular build file is using files from git so I can’t run it. I am trying to follow the documentation to build but it always give me the same error:
pkg/storage/stores/shipper/compactor/retention/marker.go:7:2: cannot find package "." in: /root/go/src/github.com/grafana/loki/vendor/io/fs
What to do? I have followed:
This file has been truncated.
<p align="center"><img src="docs/sources/logo_and_name.png" alt="Loki Logo"></p>
<a href="https://drone.grafana.net/grafana/loki"><img src="https://drone.grafana.net/api/badges/grafana/loki/status.svg" alt="Drone CI" /></a>
<a href="https://circleci.com/gh/grafana/loki/tree/master"><img src="https://circleci.com/gh/grafana/loki.svg?style=shield&circle-token=618193e5787b2951c1ea3352ad5f254f4f52313d" alt="CircleCI" /></a>
<a href="https://goreportcard.com/report/github.com/grafana/loki"><img src="https://goreportcard.com/badge/github.com/grafana/loki" alt="Go Report Card" /></a>
<a href="https://slack.grafana.com/"><img src="https://img.shields.io/badge/join%20slack-%23loki-brightgreen.svg" alt="Slack" /></a>
# Loki: like Prometheus, but for logs.
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by [Prometheus](https://prometheus.io/).
It is designed to be very cost effective and easy to operate.
It does not index the contents of the logs, but rather a set of labels for each log stream.
Compared to other log aggregation systems, Loki:
- does not do full text indexing on logs. By storing compressed, unstructured logs and only indexing metadata, Loki is simpler to operate and cheaper to run.
- indexes and groups log streams using the same labels you’re already using with Prometheus, enabling you to seamlessly switch between metrics and logs using the same labels that you’re already using with Prometheus.
- is an especially good fit for storing [Kubernetes](https://kubernetes.io/) Pod logs. Metadata such as Pod labels is automatically scraped and indexed.
- has native support in Grafana (needs Grafana v6.0).
and both gave me the same error.
What version of Go are you using?
I am using version 1.14
io/fs was only introduced in 1.16; try using that version and it should build successfully.
Forgot to answer, but thanks! seems like you were right
No prob, please mark the question as solved
Glad you came right.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.