Unable to run Loki as a local instance - Linux

Im trying to run Loki as a local instance in my linux machine using the installation guide @ https://grafana.com/docs/loki/latest/installation/local/. However it fails to read and parse the default configuration file. I could see a similar issue @ https://github.com/grafana/loki/pull/1816/, but seems to have been addressed already.
Any clue or pointers would be helpful
sudo ./loki-linux-amd64 -config.file=loki-local-config.yaml
failed parsing config: loki-local-config.yaml: yaml: unmarshal errors:
line 47: field ruler not found in type main.Config